However, when done excessively, especially during a viral fever or after a bad bout of cold and cough, this pain can be exceedingly painful and can cause soreness in the chest as well. The reason being, the excessive coughing has caused the abdominal muscles to weaken, similarly with the diaphragm.