Where possible, avoid touching the tank connections. Sometimes they undo easily, other times they don't and if too much effort is putting into turning them, they can distort the tank causing a leak around the joint.
By loosening the pipe from the pump and the hot water flow (ie, the other 2...