Temperature is an average
Temperature is proportional to the average translational kinetic energy of the particles in a substance. Two liters of boiling water and one liter of boiling water can have the same temperature because their particles have the same average kinetic energy. The larger sample has more total internal energy because it contains more particles. Heat is energy crossing a system boundary from higher temperature to lower temperature.