You need to break up your investigation. Check each trucks electrical plugs forst and make certain that they are both properly wired first. Check to make sure that each pin is getting power at the proper time.
Then move to the trailer and pass 12v through each pin and verify the circuits manually.