Even though I haven't been able to sleep well either the past few weeks (and normally I have a weird sleeping pattern as well), but a ritual usually helps. As in, doing the same things every night before going to bed. That can be listening to music, getting yourself ready for bed in the same order. And try to go to bed around the same hours, especially during the week. During the weekend, it may vary a bit of course, but a stable sleeping rhythm during the week is very important.
May I ask what kind of meds you are taking? A good substitute for real sleeping pills is melatonin. It comes in all kinds of varieties, but it helps your body create a normal sleeping pattern again. And a big plus side, you don't feel groggy in the morning because it is only a natural add to your body producing melatonin. No weird chemical stuffs.
What is very important as well, as if you wake up in the night and you can't sleep anymore, GET out of bed. Go watch some TV, read a bit or something but get out of your bedroom, so that your body will relate not sleeping to not being in bed, and relate sleeping to being in bed. It is proven that this really can work. Tossing and turning and lying awake doesn't do you any good. So you could try that too. I know it may be frustrating the first couple of nights, but then your body will get used to it (hopefully).
Good luck!