How can esophageal rupture or perforation cause chest pain?

A sudden, severe chest pain following vomiting or a procedure involving the esophagus coul signal a rupture or tear in the esophagus.