Other causes of insomnia include anxiety, illness, and hormone imbalance. In a difficult moment, for some people, sleeping pills can help. ... Sleeping pills don't reduce your anxiety, alleviate your depression, or process an emotionally difficult event. They don't motivate you to respond differently stress.