Added oil pressure gauge no idiot light doesn’t work.

Easy enough to isolate. Unhook lead for light from switch and ground it. Light should come on. If that works connect to switch and provide a jumper ground to switch and see if light comes on. Could also ohm out switch installed with ohm meter and check to ground. Could be a bad switch.