Gastrointestinal motility ensures the movement of food through the digestive tract, aiding in digestion, nutrient absorption, and waste elimination.