During sleep, the brain flushes out toxins that have accumulated throughout the day. However, when we don't get enough sleep, these toxins can build up and cause damage to our brain cells.