I have pain in my left side when coughing.

Hard to say. Respiratory infections such as a pneumonia can cause similar symptoms. If it does not get better, you should probably be checked. Thank you for your question.