The esophagus is a long, thin, and muscular tube that connects the pharynx (throat) to the stomach. It forms an important piece of the gastrointestinal tract and functions as the conduit for food and liquids that have been swallowed into the pharynx to reach the stomach.he esophagus is a long, thin, and muscular tube that connects the pharynx (throat) to the stomach. It forms an important piece of the gastrointestinal tract and functions as the conduit for food and liquids that have been swallowed into the pharynx to reach the stomach.