A pacemaker that doctors switched off and left inside a patient’s chest began pacing again two years later, competing with the newer device.