When it is working, does it run on all speeds? Could be motor getting tired, bad connection at the motor or the switch, faulty switch, bad wire etc. If it runs on all speeds then reisitor is probably okay. If you can only get one speed suspect the resistor.