If the Iron Golem can't attack or block for any reason (such as being tapped), then it doesn't attack or block. If there's a cost associated with having it attack or block, its controller isn't forced to pay that cost, so it doesn't have to attack or block in that case either.

Artwork
Loading artwork…
Iron Golem
Adventures in the Forgotten Realms · #247 · EN
Nonfoil—Foil—
Card rules
Vigilance
This creature attacks or blocks each combat if able.
5/3
Once an iron golem is set to a task, it won't turn aside until that task is complete or it has been destroyed.
Uncommon · Illustrated by Nicholas Gregory
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions