As this happens, the water in the showerhead builds pressure, which flows back through the pipe to break the airlock. Now screw all the pipes that you previously removed, ensuring they are fixed ...