Use 36 iron ingots to make 4 iron blocks, and place them in a T shape. Then place a pumpkin on top of the middle block. Your creation should turn into an Iron Golem. If not, break the pumpkin and place it again. Using a shear to break the pumpkin worked for me.