Thanks for writing to us.
Pain seems to be due to inflammation of rib( chostochondritis). proper evaluation is required to reach the diagnosis.
Avoid overhead activities and rest well. You can take anti-inflammatory drug like motrin
1 tablet with food as and when required (upto 4 tablets daily) to reduce pain and inflammation.
Hope this helps you.
Wishing you good health...