Then the reason for the third connection needs to be determined. A simple on/off switch, SPST or single pole single throw, has two connections. An SPDT, single pole double throw, is a selector switch so one side could be low beam and the other side high beam for example. That kind of switch could be SPDT center off. You can test the switch poles with a meter or test light to see what effect the switch has in different positions.