Heaven, Hera and Sparkbolt’s plan was not to beat the villains but to get time for our mane six to flee.
But they were defeated too quickly, so Twilight had taken them to the injured Crystal Empire, when the rest were captured.
When our friends and Spike were able to escape they went to the Crystal Empire to met Twilight treating Heaven, Hera and Spark who were still injured by the previous battle.