The study of the function of the nervous system, including how it communicates information throughout the body.