VCC is your 9-40V input. GRD is just that.
A + B are your motor coil pairs.
The three - pins all get daisy chained together and sent to ground
then enable, step, and dir go to your board to whatever pin you set those too. Very simple drivers to set up.