ground, ground, ground wire. 90% of light problems are from bad ground at the light or at the frame. If all else works you should check the ground at the light. I never frame ground anymore, to many problems. I always run a wire to each light on boat and snowmobile trailer and solder then heat shrink the connection.
Good luck