How do I make an enemy?

I’m new and I really want to know how to make a cube (or any other object) act as a enemy (attack, loose heath ect.) Any suggestions?

Yes. Read the tutorials. Or watch this guy make a game.