The pain described by you appears to be pleritic in nature which is because of the inflammation of the outer covering of the lung. You need to get an xray chest done to rule out pneumonia
or any other lung condition so that appropriate treatment can be prescribed. If there is no lung pathology it could be musculoiskeletal because of coughing. Cotinue antibiotics and take some pain killers.