Please post a link to the motor that you try to control.
Please post a schematic how everything is wired. A photo of a hand-drawn schematic is fine.
Please post your code.
"Installation and Troubleshooting" is not for problems with your project; I have asked a moderator if it can be moved.
PS
In case you haven't done so yet, read How to use this forum - please read., specifically related to posting code using code tags and how to insert clickable links using the url tags.