If they die while defending a Human or Dwarven city, they cannot be revived. If they die while defending a Lich city, then a portion will be revived after the battle ends. (Upgrade City Gates to increase the percentage that are revived).