The damage counters just go away, because the Pokemon isn't in play anymore.
You would have to evolve the Pokemon and reattach all the energies manually, as well. Just treat the Pokemon as if it was just already in your hand, and nothing special happened to it.