driver for 9v motor

Please provide details of the motor you want to drive, a link to specifications would be best.

But you can't drive a brushless motor like that. Brushless motors need an ESC or other speed control. And when you have an ESC you can drive that from a pin without needing a MOSFET.

Steve