Servo Motor Wont Work

Try the Sweep tutorial to go with the Servo->Sweep example:
https://www.arduino.cc/en/Tutorial/LibraryExamples/Sweep

If you follow the tutorial and the servo does not sweep back and forth then something is wrong with the hardware (Servo, Arduino, Wires...)