You are suffering from asthma.ICS+laba is the treatment of choice. Because of your incessant coughing the chest wall muscles are getting fatigued and thereby the pain you are complaining of. Start the inhalers ASAP and practice deep breathing exercises .
Next Steps
Consult a Pulmonologist who will guide you regarding the inhaler medications.
Health Tips
Avoid all allergens ,irritants .Wear face mask when going outdoors. Adherence is the key.