in my first car the previous owner had let their dog in the car and it had scratched the back window and ruined the defrost wires themselves. If they have even a tiny break somewhere along them they stop working. Take a multimeter and test the actual wires on the window. Once you've confirmed that power is going into it on one end, test the individual wires on the window.