It is not unusual to cough up phlegm with a common cold. However, it can also indicate a different, sometimes serious, underlying condition such as stomach acid reflux, lung disease, or heart disease.