Lets see. 2 wires and a ground. Isn’t 240 2 120 hot wires and a neutral plus a ground?what I think I'm looking at is a deep well that runs on 240 volts not 110. I don't see a tank or a pressure switch so they must be at a different location. Looks like you have a cycle stop valve here but for what you are trying to do at this location you don't have 120 volts without a little work. I'd just insulate the heck out of this entire pipe and ftgs. and put the rock back on
top with insulation bat covering the entire insides of the rock.
I’m not an electrician.