Chest pain that comes and goes may be related to the heart, the muscles, the digestive system, or psychological factors. Possible causes include gastrointestinal problems, panic attacks, angina, heart ...