When you start with 10 elecrons on the left of the wire and none on the right and end up with 5 on both sides, you lost all energy that was stored in the system.