Motor function refers to the ability of the nervous system to control and coordinate muscle movements, enabling voluntary and involuntary actions. It involves complex interactions between the brain, spinal cord, peripheral nerves, and muscles to execute precise movements and maintain posture and balance.