My cough went away but getting chest and back pain.

Hello all, 

I had a cough which lasted a couple of weeks. Since then it has stopped but every now and again getting pain in my back.

 

Was wanting to know if a cough goes at any point during or it stays?

 

thanks