hello sir/mam,the following are the possible causes of your pain:
1)irritation or inflammation of pleura(covering membranes of lungs) due to any viral or bacterial infections.in this case you may have other symptoms like
fever,
cough.
2)fractured rib due to trauma.
3)
muscle strain.
4)lastly we can think of any cardiac causes.
I usually recommend my patients the following :
1)if the pain doesn’t relieve even after 24 hrs or aggrevate,go for a chest x-ray PA view.it shows any bony pathology and also lungs status.
2)if the above test doesn’t reveal anything,then you can go for an ECG to rule out any cardiac causes.
3)if both the above turn out to be normal,we can think of
muscular pain and
anxiety may also cause such pain.in that case,you can go for pain medication like NSAIDs if age hope my answer clarifies your doubts.any further queries will be attended to promptly.thank you.wish you and your family a very happy,healthy and prosperous new year.take care.bye.