Pin D11 from the Nano is a TTL / PWM signal, it switches the motor ground pin using the MOSFET.
PWM works like a dimmer switch for a lamp, quickly turning the circuit on and off. If you measure the output from the motor pin with a multimeter it will appear to be a variable voltage from 0 to 12VDC but is in fact always 12V just switched too fast for the meter to detect a change, but with an oscilloscope you can see the PWM signal.