Why wont my code work???? please help!

Would attaching the servo to a pin in the code help, do you think ?