In the brain, electrical impulses are sent via neurons towards the sensory receptors in order to alert us of an event happening around us. They enter the brain through the olfactory bulb (the nose), through the optic nerve (eyes), and into the thalamus (spinal cord). From here they go to various parts of the brain where they can be processed and understood. Some of these parts include the occipital lobe (visual processing), the auditory area (hearing), the motor cortex (coordination), and the prefrontal cortex (thought processes).
Other areas, such as the auditory cortex, and sensory area, work similarly, receiving input and processing information. There are also specialized areas associated with producing language (Broca‘s and Wernicke’s areas) and controlling voluntary movement (the primary motor cortex). In the frontal lobes of our brains are the prefrontal cortex, which controls higher mental functions including thought and reasoning, decision-making, personality, and intellect.