The esophagus (oesophagus) is the muscular tube that connects the mouth (pharynx) to the stomach. It transports food through peristaltic contractions. The trachea connects to the lungs, while intestines are part of the digestive tract beyond the stomach.