Mood swings make it hard to pay attention, while feelings of hopelessness or low self-esteem can cause individuals to believe they shouldn't bother or simply can't learn new things. Depression also impacts sleep, and insomnia and hypersomnia can further impact mental health and function.