What does the cerebrum, cerebellum and brainstem do?

The human brain consists of the cerebrum, cerebellum and brain stem, which are connected to the spinal cord. The cerebrum is the most developed part of the brain that accounts for 80% of the total weight of the brain and is divided into four parts: the frontal lobe, the temporal lobe, the parietal lobe and the occipital lobe. It is the frontal lobe that contains the brain’s command tower, the prefrontal cortex.
The frontal lobe is not only responsible for thinking and remembering things, it gives movement commands. The parietal lobe is responsible for spatial cognition to sense and analyze things; the occipital lobe collects information through the eyes and analyze it; lastly, the temporal lobe analyzes memory, language and sounds.
Below the cerebrum is the cerebellum, which is the second largest area after the cerebrum. It is involved in motor control functions such as controlling the magnitude of exercise power, maintaining posture and learning motor activity.
The brainstem consists of the midbrain, the pons, the diencephalon and the medulla oblongata, and plays important roles in life support such as respiration, heartbeat, digestion and regulating body temperature. The midbrain is located in front of the cerebellum and functions to control sensory and motor control. The bridge plays a role in transmitting information on exercise from the cerebrum to the cerebellum. The medulla oblongata is a function that controls digestion, respiration and heart movement. In addition to transmitting sensory information to the cerebrum, the diencephalon maintains a constant body temperature and regulates the functions of internal organs and blood vessels.
The number of nerve cells in the brain is over hundreds of billions, and they work by exchanging information with each other by emitting electrical signals.