Recently it seems I’ve had a steady stream of similar questions. Which color wire goes where when wiring up my trailer lights?
Here is a great little cheat-sheet I found a while back.
Another question is what lights do I need on my trailer? Here is a link to the page on the National Highway Traffic Safety Administration (NHTSA) web-site describing the Federal trailer lighting equipment location requirements: Click Here.
Hope this helps,