It could be something as simple , as a corroded connections . Take out the bulbs , and clean the contacts in the fittings , and on the bulbs.
Measure also if there's power in the fittings , and good grounds !.
Welcome to the forum from Gulf Coast AL. As Roadking-1960 mentioned check the easy stuff first. Not saying the switch isn't bad but you could save yourself a lot of work and $