The telencephalon develops into the basal ganglia and the cerebral cortex. The basal ganglia is responsible for motor and habit learning, emotional processing, and action selection. The cerebral cortex is the outer bark of the brain and is responsible for attention, memory, and language processing.