First thing you should do at this point is test the 4-way of the wiring harness with a circuit tester part # PTW2993 for voltage on all of the right pins when the taillight signals are being applied. Just like in the video I attached.
If the voltage checks out there but the trailer lights still don't function right then the problem is on the trailer wiring. That would mean that problem is either due to a ground issue or a short issue.
Make sure that the trailer side connector are clean... view full answer...