The study of the nervous system, including its structure, function, and relationship to behavior and cognition.