No, an RCD does not need an earth to work, but as above, current has to "leak" out of the circuit(s) protected by the RCD for it to operate. This leakage current is at the most 30mA (0.030 amps) before the RCD trips, although a healthy RCD will trip well within that. To clarify further, leakage current is, for instance, someone accidentally (or otherwise) coming in contact with a live wire in which case some of the current will flow through such person down to the earth. The RCD will then pick up that not all current leaving the line conductor is returning in the neutral and will thence operate because of this imbalance. Hope this helps too, I tried to make it simple but not sure if I've succeeded! Cheers