To bring the Hearthome City Gym Leader back to the gym in Pokémon, first travel to Celestic Town. There, defeat a Galactic Grunt, then talk to Cyrus. Cynthia's grandmother will give you the HM move Surf—which you'll need the Hearthome Gym Badge to use. Once that's done, the Gym Leader flies back and the gym reopens.