This is actually pretty easy to explain to a five year old:
The brain doesn’t sleep. It is still fully functional while you sleep. It’s just not processing information the same as when you are awake. Think about critters like bats that hang upside down to sleep; same thing.
I’m not sure neurologists can explain out the actual (complex) mechanism by which this happens; there is alot about the brain that we do not understand.
Latest Answers