When you’re tossing and turning at night, it can be tempting to pop a pill for relief. However, no sleeping pill will cure the underlying cause of your insomnia, and some can even make the problem worse in the long run. Before taking any sleep aid or medication, talk to your doctor or pharmacist.