3 phase brushless motor controller

Could you explain more what a ESC does, will it work with a brushless three phase DC motor (BLDC) to control both speed and torque by providing 3 phase power?