I had a similar problem last weekend.
For me it was a bad connection.
On my trailer, the in line fuse located on the positive " + " terminal of the trailer has two green leads coming off of it. One lead goes to the battery, the other lead is connected to the trailer wiring by a wire nut. The wire nut was completely rusted along with the copper wiring. I cut and stripped the wire and grabbed a new wire nut and it solved my issue.
Take apart your wire connections and inspect.