A small amount of water is heated in a soda can until steaming. The can is then quickly put in cool water, mouth side down. The sudden change in temp causes a sudden change in pressure, making atmospheric pressure higher than the can pressure. Thus, the can collapses under the pressure.