If by guard you mean Iron Golem, then you make four iron blocks
(nine iron ingots in the crafting table, completely fill the table
with the ingots, nd you should get an iron block). Place them in a
standing T shape (one as a base, one above it, and then two on
opposite sides from the one above it). Then place a normal pumpkin
on its head, and you should have an Iron Golem!