Answer :

Air is the best insulator. A blanket traps the air so your body heat is insulated by the air which is trapped by the blanket