Start @ the bulbs!
First save yourself a little grief. I assume the mast is down, so pull the bulbs, test them and get spares. Since you've got screws out, you can now see the wiring and that'll give you a hint as to what's what at the bottom of the mast. I use a standard tester and my portable 12V power pack. My C27 has the 3 plug wire, with a shared ground for the mast light and anchor light. I use the tester to determine the ground, then the power pack to test the system. If the light comes on, it works. (I have to do that each year because I never remember to simply mark the ground plug). It's worth pulling the bulbs first just to check thier sockets for corrosion. While your at it, check around your spreaders for wear or cracks. Lube your halyard shieves, check the connections for radio antenia and your wind indicator. A friend has his wind vane mess up after the mast was up, after a high climb on a breazy day, he found a glob spider web had jammed up the works.