The cerebral cortex, the largest part of the cerebrum, is divided into four areas - the frontal, temporal, parietal and occipital lobes. The cerebral cortex is responsible for high level skills such as intelligence, personality and planning as well as sensory perception and motor function. The cerebellum, which is the second largest part of the brain, sits at the base of the brain. It is very important for motor coordination, posture and balance. A third part of the brain, the brain stem, controls many of the body's automatic functions.