Electric problems are not always easy to diagnose. There shouldn't be any complicated electronics in the lighting system, those things are simply on or off. When I was turning wrenches for a living, our mantra was to ck the most obvious things first. Is it all of the lights that are going off, the front AND the back? If it's only one or the other, ck the bulb and contacts first. In any case, after you've checked that, trace the wires back to their source, which is probably a mess of wires near the controller. Turn the lights on, and if you're not sure which is which, pull each connector apart until you find the one that turns the lights on and off. Ck it and all the connectors to make sure they're clean and tight in the connections.
Then if needed, trace things to the switch itself, remembering that the switch will have a hot lead going in, and one or more going out to the lights themselves. Bang on the switch w/ the palm of your hand and see if that does anything w/ the lights switched on. Make sure everything is well grounded. I would invest $5 in a simple electrical tester from Harbor Freight. You don't need a fancy volt/ohm meter, just a screwdriver looking tester w/ a sharp point and a wire w/ an alligator clip on the end.