The correct answer is: d. to provide electrical signals to initiate peristalsis.
The nervous system plays a crucial role in digestion by coordinating the contractions of the smooth muscles in the gastrointestinal tract through electrical signals, which initiate peristalsis—the wave-like movements that propel food through the digestive system.