Swap the motors. If the problem follows the motor, then your motor is bad. If the problem continues with the new motor, then suspect the ESC. If you suspect the ESC, swap them around. If the problem follows the ESC, then it's probably bad. If not, it could be the controller itself.