A good insulating material is a poor conductor that contains trapped air, e.g. foam, feathers, glass fibre. Being a poor conductor (non-metal) prevents heat transfer by conduction and the trapped air prevents convection currents.