Chest pain that comes and goes could be a sign of a problem related to the heart, respiratory system, digestion or even panic attacks. However, you should see your doctor if the chest pain comes back worse and is accompanied by other symptoms. These include nausea, shortness of breath and pain in the shoulder, neck, arms, back, or jaw.