We could go into endless depth but it’s important to understand some basics about how the different types of HP operate: health and armour doesn’t regenerate (unless you’re certain support classes), but shields do regenerate.
This is one of the first things Overwatch explains, and it’s pretty clear that a lot of players didn’t take it in.