Some other lung-related conditions known to cause chest discomfort include: Pneumonia: This infection inflames the air sacs in your lungs and can make your chest hurt when you breathe or cough.