You should not lay in bed trying to fall asleep for more than about 15 minutes. After that, get up and leave your bedroom immediately. Make sure not to do any activities that are mentally taxing, or that require you to use a lot of energy. Find something to relax you. Be sure to only sleep in your bed, and don't allow yourself to waste a lot of time struggling to sleep. This can become a ritual.