$\vec F_{ext} = M \vec a$ where $\vec F_{ext}$ is the net external force, $M$ is the total mass, and $\vec a$ is the acceleration of the center of mass (CM). $F_{ext} = mg - T$ downward where T is the tension in the yo yo string. This is for the motion of the CM. $T$ is not constant.
The yo yo has rotational motion about the CM as well as translational motion of the CM. $\vec \tau_{ext} = d\vec L/dt$ where $\vec \tau _{ext}$ is the total torque with respect to the CM and $\vec L$ is the angular momentum with respect to the center of mass. This torque is due to $T$.
Regarding your question about T and work, the force T does no work assuming there is no slip at the string/yo yo surface. The force T is a constraint that provides a torque but T does no work on the yo yo as a whole. This is similar to an object rolling down a plane without slipping; here, the force of friction provides a torque but does no work since there is no relative motion between the friction force and the point of contact of the object on the plane. See one of the physics texts by Halliday and Resnick. This allows us to use the conservation of mechanical energy to evaluate the problem as follows. [If the string slips, then $T$ does work on the yo yo.]
Assuming no friction loss and no slipping of the yo-yo string, for a yo yo unwinding down starting from rest, from the conservation of energy, after falling a distance $h$: $mgh = mv^2/2 + I \omega ^2/2$ where $I$ is the moment of inertia of the yo yo, $v$ is the velocity of the CM, and $\omega$ is its angular velocity with respect to the CM, equal to $v/r$ where $r$ is the distance from the CM to where the string is wound on the yo yo. [Note: this is an evaluation of $Work = \Delta Kinetic \enspace Energy$ for the yo yo where $Work = mg$ (the work from gravity is considered as a change in potential energy), and $Kinetic \enspace Energy$ includes translational energy of the CM and rotational energy about the CM. $\int_{a}^{b}(mg - T)dx = \Delta KE_{CM} = 1/2Mv^2$ where x is the downward distance travelled by the CM, but this is just for the kinetic energy of the CM not for the entire yo yo. In this sense T does work on the CM, but not on the yo yo as a whole; the earlier answer by @User256872 discusses this.]
This exchange has numerous discussions of this problem; for example see Simple yo-yo work problem. Also see https://physics.princeton.edu/~mcdonald/examples/yoyo.pdf on the web.