Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike G and I'll be assisting you. I would suspect something other than the switch unless you are using a dimmer. What you have is a transformer, not a ballast.1) the wiring connecting the transformer or 2) a wire that came loose. 3) using a dimmer on a transformer not able to be dimmed. Do you have a 2 wire voltage tester?
A tester would verify 120V on the supply wires and 12V on the output. No matter. Remove the dimmer and put the wires together to verify the dimmer is defective.
Let me understand what you stated. The switches you need are part of the fixture, yes or no? If so, you can bypass then to verify operation.