commented after check 

commented after check and used digital pin 3 as direction pin , and commenting lines are only for debugging and try direction pin with another digital pin .