A lot of these things have a thermal fuse that will cut out if the unit overheats or is left on for too long. They are also often defective from the start. Open the unit and on the hot wire you should see what looks like a little resistor, or bullet. Short it out and check, and if it now works replace.