Hi,
Welcome.
But in order for us to help you better, we need more information.
Have you read the thread:
"How to get the best out of this forum"?
If not, please read.
Then inform which arduino you use, which motor driver, and using tags, post the code you wrote, even if it doesn't work, so we'll know more about your project and for example what pins you're using.
It is highly recommended that you post a schematic of your project, even if it is drawn freehand.