Four things:
- Use code tags to post your code - the # button above lets you do this
- You have a lot of superfluous curly braces - the code will be a lot clearer without them
- 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.
- 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.