Stepper motor does not turn

Have you tried using #include.<Stepper.h> library, you'll still need to have correct wiring but it might simplify thing for you. then declare a stepper, its direction and step pins, steps per revolution. then just set its speed, then all you have to do it tell it how many steps you want any where in your code. Just a thought