There are a few things we literally cannot live without. Oxygen is one. Another is food and water. And then there is sleep: forcibly keep an animal awake for long enough and you will kill it. The same almost certainly applies to humans.
This fact alone tells us that sleep must be doing something pretty important. But despite decades of intense scientific study there still is no consensus on exactly what that something is.