People who sleep well do not actively try to get to sleep; they get into bed and sleep arrives. So, the main thing is not to try to go to sleep. If you are actively trying, sleep will get further out of reach. Have a regular bedtime and getting-up time, as it trains your body into a rhythm.
Get ready for sleep 30 minutes or so before bed with a wind-down routine. This can be whatever works for you – for example, taking off your makeup, getting changed and reading. The aim is to find something that helps you switch off from the day. Turn off devices 30 to 60 minutes before bed, partly because there is evidence to suggest the blue light they emit can switch off the natural sleep hormone melatonin, but also to take your mind off social media, the news or work. If you use your phone as an alarm, it may not be practical to keep it out of the bedroom, but avoid using it once you are settling down to sleep.
If you wake in the night, trust that your natural sleep drive will get you back to sleep at some point. Avoid clock-watching, which can exacerbate anxiety. If you start to feel anxious, get up and do something relaxing elsewhere – read a book or do a mindfulness activity – and then return to bed once you feel sleepy again.
If you are still struggling with your sleep and it is starting to affect your daily life, see your GP or a sleep specialist who can work with you to provide effective treatments.