What are the sleep phases and how do they work? What does it mean to sleepwalk? How does a sleeping pill work? How to improve the quality of our rest? Sleeping is a biological need. Sleep is not just a period of inactivity, it is a time when fundamental things happen in the brain. This is why when we sleep poorly we function less well.