Motor driver shield for arduino


I am doing a project where i need to control a stepper motor using joystick
I thought of using a motor shield for arduino mega and i bought the following one from an online store
but not an adafruit shield

When i used the stepper library and the adafruit library and their respective examples to control the motor, it did not work.

Can someone help me to solve this??

thanks in advance

arduino shield.jpg