Welcome to Health Care Magic,
may be due to multiple reasons.It may be due to respiratory tract
infection.You said that you had had an x-ray done .But u havent mentioned what was diagnosed.
Your doctor will prescribe you a cough syrup and antibiotics if its a infection or treat you according to your diagnosis.
Better if you go for homoeopathic treatment.It will give you a quick and permanent cure.