Checking the relay
If your rear window heater was fitted by the car manufacturer, its electrical circuit will probably contain a relay — a small square or rectangular box usually located near the fusebox.
To test that the relay is working, place your fingers on the relay box and operate the heater switch. The relay should vibrate or click. If it does not, it has failed and should be replaced.