The study of the structure and organization of the nervous system, including the brain and spinal cord.