When a sensory stimulus is given by external environment, this signal is taken by sensory nerve to the brain. The brain processes it and send a signal to muscles through the motor nerve. Motor function nerves are involved which basically governs motor function of the body.