Are you saying the wires are like this
====Switch--------
Or does one of the wires go AROUND the switch?
Kind of like this ====Switch_____
first case ... It is either a 3-way switch (Water pumps are sometims that way) or it USED to be lighted. Use a volt meter on all 3 wires to figure it out
Seond case the single wire is likely SWITHED but use a volt meter to figure it out
How the Voltmeter helps
3-Way will have one or two leads hot. And one or two ground. Toggling the swich will make one of the hots into a ground or one of the grounds into a hot The remainging lead is either Load (if ground) or HOT.
If it is a tapped in switch then two will be hot and one "Switched" no ground
If it is a lit switch one will always be hot. one always ground and one switched.