Similar to what others have suggested, pull the truck up beside the trailer and make a short temp harness directly from one light to the receptor on the truck. If they work fine this way, you know it is the trailer wiring. This also makes it easier to swap wires and see exactly what you are doing.