Disconnect the servos and try the program. If you are powering the servos from the Arduino you may be overloading the USB port.
This can be the problem, but it was working yesterday night.
now unable to work with one servo as well... another code in which i am trying to give specific angle to servos is also not working. after 2 3 values program stuck with same error