Step motor not working! ESP8266, Curtain Project

Why are you using a stepper motor for curtains? Do you need to control how wide they are opened with an accuracy of a millimeter? I think you chose the wrong type of motor. A DC motor with a gearbox and some limit switches would be more appropriate.