This type of pain may be due to muscular strain around the rib region.. It is usually temporary but if it is persistent for a longer time, better to go for some investigations.
Next Steps
You may start with analgesic and muscle relaxant tablet, apply analgesic ointment locally, continue hot fomentation. If pain is persistent, you should go for X ray Chest PA view and ECG to rule out any other possible cause of the pain.. Also, start deep breathing exercises..
Health Tips
Avoid heavy work, avoid sitting down, avoid Jerky movements around chest..