Since both the tail lights work off the brown wire and one side works, its got to be in the trailer harness. You will probably find a bad wire as mentioned.