The spinal cord plays a critical role in motor function, relaying commands from the brain to the muscles.