1.Coins:
You can use coins to buy exciting new Costumes/Jetpacks/Vehicles after unlocking it.
You can use coins to revive Barry while playing challenges.
2.Gems:
You can use gems to revive Barry.
You can use gems to buy boosters (Extra Time, Coin Magnet, Life Guard)