The nervous system is made up of the central nervous system (brain and spinal cord) and peripheral nervous system. It functions to transmit signals between different parts of the body via neurons. The brain is the main organ of the nervous system and is divided into four principal parts - the brain stem, cerebrum, cerebellum and diencephalon. The brain stem controls basic functions, the cerebrum controls sensory perception and voluntary movement, the cerebellum coordinates movement, and the diencephalon gives rise to posterior forebrain structures.