Stepper motor not returning on its original position

Look at the examples that come with it?
read the explanatory comments in AccelStepper.h?