Why sleep matters

We all know we feel better when we are well rested, but why exactly is that? And what happens when we don’t get enough sleep?