Health and more for a gameobject

I have a game where the GameObjects have Attack Defense and Health but I don’t know how to give the object these and update them when needed.