Sleeping and waking depend on activities in the brain stem. Several areas of the brain seem to be involved in dreams and REM sleep, including the hippocamus and cortex. See attached links.
hypothalamus.
The reticular activating system (RAS)
No body knows for sure what happens to brain when you sleep. Sleep gives rest to your brain. Good amount of sleep keep your brain healthy. To be able to get good sleep and appetite are priceless treasure you can have.
cerebral cortex
hypothalamus
The pons is the part of the brain that regulates body movement, attention, sleep, and alertness. The pons is the part of the brainstem that links the medulla oblongata and the thalamus.
The pons is the part of the brain that regulates body movement, attention, sleep, and alertness. The pons is the part of the brainstem that links the medulla oblongata and the thalamus.
hypothalamus
Limbic system
the midbrain and hindbrain.
Suprachiasmatic nucleus of the hypothalamus
The pons of the brain generally functions to send information from the forebrain to the cerebellum. It plays a large role in sleep paralysis and generation of dreams, and damage to the pons often results in sleep abnormalities.
The medulla oblongata
The part of the brain that is primarily involved in sleep is the hypothalamus. Within the hypothalamus, there are specific regions that regulate sleep-wake cycles, such as the suprachiasmatic nucleus (SCN) and the ventrolateral preoptic nucleus (VLPO). These regions interact with other brain areas to control the timing and duration of sleep.