Insulation controls the transfer of heat, both inward and outward. In winter, it prevents the escape of heat from the inside, thus maintaining a comfortable indoor temperature and reducing the need for excessive heating.
In summer, it impedes the transfer of heat from outside to inside, thus keeping the interior cooler.