Your diaphragm is sort of involved in both of those: it is the muscle that expands your lungs for breathing in, and it is also a muscle that your esophagus passes through just above where it enters your stomach (google up esophageal hiatus if you like).