servo library not working

Downloading and reinstalling the Arduino IDE would be a good place to start.