A water pump electrical line must be sized for motor starting current, moisture and continuous load. Using a random socket or extension cord can cause heating, breaker trips and cable damage.
An electrician should choose the right cable, moisture-protected socket, breaker, RCD and grounding. The breaker must protect the cable, and an RCD should not be bypassed if it trips; the leakage cause must be found.
If the pump hums, starts poorly, trips the breaker, warms the socket or stops working after rain, the line should be tested under load.