I would suggest you to get x ray
of the chest to see if there is any bony problem around rib cage
. Also if there is any calcium deficiency
as then there can be formation of loosers zone at ribs and it causes same type of pain as you are complaining. I would also suggest you to avoid any sporting activity or sudden bending.