The pharynx is a muscular tube that connects the oral and nasal cavities to the larynx and esophagus. It has three parts - nasopharynx, oropharynx, and laryngopharynx. The pharynx and esophagus receive their blood supply from branches of the external carotid artery and aortic arteries respectively. They are innervated by the pharyngeal plexus, glossopharyngeal nerve, and vagus nerve. The esophagus begins in the neck, passes through the thorax, and ends in the abdomen where it joins the stomach.