welcome to HealthcareMagic
If you have pain below your ribs if on front side it can be due to inflammation of liver
or gall bladder
and if on the back side then it can be due to spine or kidney
.It will be better to get a physical examination done by consulting a doctor so that a diagnosis can be made.So please visit a doctor ;he will examine you and if needed investigate and then treat you.