Do you experience anxiety? People who regularily suffer from anxiety often have pain in their ribcage. Do you work out? Muscles release lactic acid, which can cause your bones to be sore in your rib cage.
usually chronic pains like this can be due to one or two of four things....first if you "pop" your back a lot you can actually manipulate your coto-sternal spaces(spaces between ribs and sternum) this cause pain and a burning twinging like pain.
the second cause is attributed to actual musculoskeletal abnormalities such as scoliosis and compression of the thoracic nerves that run out of your middle spine.
the third is usually attributed to inflammatory disorders such as costochondritis(swelling and inflammation of cartilage and bone of ribs) or pre-cordial catch syndrome which produces a centralized sharp twinging burning pain at the connection of ribs and sternum.
and the fourth...arthritis...go see a doctor friend your ribs are usually related to your spine and your spine is nothing to mess with good luck and if you have any questions feel free to ask.
Have you been hit there or ran into something at all. Could have bruised ribs or possibly cracked ribs. Do you play sports like football? I suggest going to see a doctor as soon as you can.