In animals the brain, or encephalon (Greek for "in the head"), is the control center of the central nervous system, responsible for thought. In most animals, the brain is located in the head, protected by the skull and close to the primary sensory apparatus of vision, hearing, equilibrioception, taste, and olfaction. While all vertebrates have a brain, most invertebrates have either a centralized brain or collections of individual ganglia. Primitive animals such as sponges do not have a brain at all. Brains can be extremely complex. For example, the human brain contains more than 100 billion neurons, each linked to as many as 10,000 other neurons.
Most brains exhibit a substantial distinction between the gray matter and white matter. Gray matter consists of the cell bodies of the neurons, while white matter consists of the fibers (axons) which connect neurons. The axons are surrounded by a fatty insulating sheath called myelin (oligodendroglia cells), giving the white matter its distinctive color. The outer layer of the brain is gray matter called cerebral cortex. Deep in the brain, compartments of white matter (fasciculi, fiber tracts), gray matter (nuclei) and spaces filled with cerebrospinal fluid (ventricles) are found.
The brain innervates the head through cranial nerves, and it communicates with the spinal cord, which innervates the body through spinal nerves. Nervous fibers transmitting signals from the brain are called efferent fibers. The fibers transmitting signals to the brain are called afferent (or sensory) fibers. Nerves can be afferent, efferent or mixed (i.e., containing both types of fibers).
The brain is the site of reason and intelligence, which include such components as cognition, perception, attention, memory and emotion. The brain is also responsible for control of posture and movements. It makes possible cognitive, motor and other forms of learning. The brain can perform a variety of functions automatically, without the need for conscious awareness, such as coordination of sensory systems (eg. sensory gating and multisensory integration), walking, and homeostatic body functions such as heart rate, blood pressure, fluid balance, and body temperature.
Many functions are controlled by coordinated activity of the brain and spinal cord. Moreover, some behaviors such as simple reflexes and basic locomotion, can be executed under spinal cord control alone