Delays not working/sets of code in loop are skiped

I hope you aren't powering your stepper motor from the Arduino.