Servo operated by push button

Four things:

  1. Use code tags to post your code - the # button above lets you do this
  2. You have a lot of superfluous curly braces - the code will be a lot clearer without them
  3. Put a delay in each of your for loops - the arduino is fast. Your servo is being told to go to 180 degrees and back before it has a chance to move at all.
  4. The commands to move the servo are not dependent on the state of the button.

Fix number 3 first - then you should at least be able to confirm that your servo wiring is correct as it should then move.