The total differential of the internal energy (at constant composition and allowing only pV work) is usually written as
$$dU = -pdV + TdS$$
However the differential $dU$ can be written in terms of other variables, for instance p and T, in which case:
$$\begin{align} dU &= \left(\frac{\partial U}{\partial V} \right)_T dV + \left(\frac{\partial U}{\partial T} \right)_V dT \\ &= \left[-p + T \left( \frac{\partial S}{\partial V} \right)_T \right] dV + C_V dT \\ &= \left[-p + T \left( \frac{\partial P}{\partial T} \right)_V \right] dV + C_V dT \end{align}$$
The last equality follows from one of Maxwell's relations.
This expression btw is known as the thermodynamic equation of state.
For an ideal gas it follows that
$$dU = C_V dT $$
Note that the change in energy is independent of changes in pressure and volume, it depends only on changes in T.
If the heat capacity is constant over the temperature change of interest then you may write
$$ \Delta U = C_V \Delta T $$