When you are resting or sleeping, you are giving time to your body to repair and restore the body tissues. If you sleep like 3am and wake up at 7am to get ready to work or school, your body is not fully recover. Based on my own experience, I always had headaches and back pain before because of sleeping late. And after a couple of times experiencing headaches and back pain like that, I usually had fever.