You don't have an RCD covering he house sockets that is why the pump worked on the extension lead. The pump is faulty and needs to be replaced, the RCD is doing its job and keeping you safe. You said above that you have two pond plugs yet you only talk about one pump, what is the second plug for?