DC Motor + PIR Sensor

I had a go and the code is above but when i uploaded it , all that happened was the led light (thingy) on the board acknowledged that there was movement from the sensor and the motor did nothing

Also is a picture (hopefully) of the board

I am now stuck , is it the code or the board or both

James