The 4 wires are for the pump They can terminate at the well head, just ground the fourth wire to the well pipe. You still need 3 wires to the house.
You can also buy a 2 wire 230 vlt pump. in some cases they are better than a 3 wire pump. When stuck they kick back and forth to freee themselves. 3 wire pumps do not.
Water Treatment Specialist