Stepper driver - pinout: enable, reset and sleep
http://www.ti.com/lit/ds/symlink/drv8825.pdf

This data sheet contains all valid information which you are asking, and it is well evolved to understand any beginner who have knowledge of stepper motor operation.