When the terminals are connected by a wire, then the charge is free to move inside the wire, and the electric field does work on the charge.
(the terminals; are connected; ) (the charge; to move; inside the wire) (the electric field; does; work on the charge)
the terminals the charge the electric field
are connected to move does
inside the wire
work on the charge