The main function of the ENS is to control the secretory activity of the gastrointestinal glands and peristalsis of the gastrointestinal wall. A large number of organs derived from the developing foregut also receive input from the vagus nerve, which also works in tandem with the ENS to control gastrointestinal function.
The ENS (enteric nervous system) regulates the secretion of digestive glands and peristalsis of the gastrointestinal tract. The vagus nerve, which also works with the ENS to control gastrointestinal function, receives input from a large number of organs derived from the foregut.