The central nervous system consists of the brain and spinal cord. The brain can be divided into the brain stem, diencephalon, cerebellum, and cerebrum. The brain stem controls vital functions like breathing. The cerebellum coordinates movement and balance. The cerebrum is responsible for higher functions like thinking and memory. The nervous system works closely with the endocrine system to control bodily processes through electrical and chemical signals.