Help needed Arduino Uno R3

Don't be upset, but re-check YOUR wiring, is it the same as this diagram?
Is your battery fully charged?
If you disconnect the motor does the sketch run OK?