Difficulty in sleeping can occur due to multiple causes. Some common causes are:   Stress. Trauma. Caffeine. Divorce. Hunger.  Discomfort.