Convection is a process in which the heat from one part of a fluid ( which can either be a liquid or a gas ) moves to its other parts .