It rests. Doesn't stop, but rests.
When you sleep your body start repairing itself. While sleeping your body slows down such as you heart beat and breathing. Your brain is forever active, the brain sent millions of signal through out your body. There are more thing that happen but its to much to type do some farther research on this topic.