What are the basic functions of nervous system?

The nervous system of higher animals performs three basic functions:
(a) receiving sensory input from internal and external environment by nerves,
(b) processing the input information; and
© responding to the stimuli transmitting motor
commands to determine the response of the body parts or cells.