If "clicking by the well" means a pump relay is no longer operating, you want to make sure a rain detector, or other sensor, isn't preventing operation. The usual means of diagnosing electrical issues begins with resistance testing of the wiring to the valves (and pump relay)