Coughing from time to time is normal and is often linked to a cold or flu virus. Coughing in fact serves a purpose as it helps your body to bring up germs, mucus, dust and other irritants from your lungs that may make you sick. To this extent coughing helps prevent infection.
However, when a cough persists for weeks, or months, with no signs of improvement, it is usually linked to a wider medical issue that needs specialist diagnosis and treatment.