The Work - Kinetic Energy theorem tells us that when there is a net torque acting on an object, the work done by the net torque equals the object's change in kinetic energy.
W = ΔK = Kf - Ki = ½ Iωf2 - ½ Iωi2