A mixture of Hypnotherapy and CBT can help treat insomnia and re-establish a sleep pattern. Sleep problems can be symptoms of other underlying issues which when cleared restore the sleep.
Long term use of sleep inducing medication can be counter productive and can end up as part of the problem, (although it is not advisable to suddenly stop taking regular medication).
Sleep difficulties are often a complex mixture of biological, physical, emotional and social factors. Which can be explored individually to reach a solution.