Does my servo have a problem? or is it my code?

No one has yet asked you how the switch is wired. You aren't using the internal pullup resistor, so you must have an external pullup or pulldown resistor. Since you expect HIGH to mean pressed, that means a pulldown resistor.

So, how IS your switch wired?

  pinMode(7, INPUT);  //make pin 9 our input. This is port will determines power input or no power input (1 or 0)

No, it doesn't.