Ambien didn't make me sleep, but my experiences to the side, it has a very short halflife (2 hours according to
benzo.org.uk : Benzodiazepine Equivalence Table ) which means it helps you fall asleep but not stay asleep.
Temazepam really made me sleep, but the night would turn into one continuous nightmare. I have a lot of nightmares anyway (I have PTSD) but without meds I wake from them. With temazepam, I wouldn't.