MKR 1010 Wifi Transistor 3V+ 5V

You did not put the diode across the motor.