Hello,
Did you do any sudden stretching or have any fall or hit by any blunt thing while on road? Your symptoms indicate an external injury which might have caused either a muscle injury due to strain/tear or rib fracture. Muscles assisting breathing called intercoastal muscles are attached to ribs. So in injuries to the ribcage region may injure these muscles directly or due to rib fracture. So, the pain will be more when you breathe deeply, laugh or do twisting movements of your upper body.
Rest and icepacks will alleviate the pain. Muscle injuries and minor rib fractures usually heal on their own if given enough rest. Over the counter pain medication may be taken if pain is disturbing. In case of persistent pain, have a doctor consult for examination. A chest x ray may reveal any fractured ribs. If in doubt, you may be sent for an MRI scan for examining the underlying structures like muscles and other organs.
Thank you. Do get back to me for any further queries.