An esophageal spasm occurs when the esophageal muscles contract abnormally. This is often triggered by eating and can cause chest pain. Esophageal spasm symptoms can resemble those of a heart attack, ...