The servo code didn't work

Sorry, i tested it just now in Arduino IDE, it didn't work either, it just works in thinkercad simulator.