The study of how the nervous system functions, including the structure and functions of neurons and synapses.