The study of the structure and function of the nervous system and how it influences behavior, thoughts and emotions.