If you're reading this at 3am then you may be having trouble sleeping. It's miserable not being able to sleep well, and once you start adding anxiety about not sleeping on top of whatever it is that's keeping you awake it can feel impossible to relax and get enough rest. Sleep problems are common, but not commonly treated in a way that people find helpful. Sleeping tablets are usually given by doctors who don't know what else to do, but there can be other ways of dealing with sleep issues.
Insomnia may result from having a stressful period or event in your life, and it's normal not to sleep well before exams, interviews, or after a bereavement or moving house. Sleep difficulties can resolve themselves once the source of anxiety or conflict have abated, but if you find that you have ongoing sleep problems then there are some aspects that therapy can help with.
Two approaches are CBT (cognitive behavioural therapy) and more transitional psychotherapy. Each works differently with regard to sleep.