How do armor works?

Armor, in a simple nutshell, decreases the amount of damage the hero receives on their base health, so if a hero such as Vanguard gains a ton of armor, he will increase his survivability.

This old conversation might have something of use if you’re looking for more details: