How does a thermos work?

A thermos' lining includes cork and glass, both poor conductors of heat,
and a vaccuum, an even worse conductor of heat. This makes it difficult
for outside heat to enter a cold drink, or for the heat from a hot drink
to pass outside.