Arduino setup not working

*The speed of the motor doesnt need to be controlled.