In Liquids and gases, heat transfer takes place by convection. Heat transfer takes place by the process of radiation when there are no particles of any kind which can move and transfer heat. So, in an empty space or vacuum heat is transferred by radiation.