Oxidised or poor connections anywhere in the pump circuit would prevent it from running and definitely would not keep it on all the time. First remove a wire (either one) from the pressure switch. If the pump stops the pressure switch is faulty or very badly adjusted.That sounds like a plan
Martin