kW is power kWh is energy
If you use a 2kW appliance for 3 hours, you would've consumed 6kWh of energy.