it sounds like you have an unplugged harness or wires that have broken or been cut. or even worse they are cracked and the power is jumping into other wires causing a short. try running a new wire from the switch to the fan motor and see if it works that way. if it does trace the wires and find the problem. maybe you need a new harness from the switch to the fan motor.