Using mosfet as a switch to control a motor(don't know if it's ideal or not). I applied 5v from the microcontroller to the gate terminal while DRAIN-SOURCE is powered by a 5v power supply, the motor runs only for 1sec and turns off, but if i use the 5v from the power supply to the gate terminal, the motor runs continuously. Why does this happen, Mosfet Irfz44n