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 enteric nervous system (ENS) is responsible for controlling the secretion of digestive glands and the movement of the gastrointestinal wall. The vagus nerve collaborates with the ENS to regulate gastrointestinal activity by receiving input from many organs originating in the foregut.