Feeling sick or being in pain can also make it hard to sleep. Drinking beverages containing caffeine, such as coffee, tea or colas can make it difficult to sleep. Some medicines may also keep you awake.