Energy equation is not necessarily needed for our purposes. But we mention it to be complete. This equation describes the conservation of internal energy in fluid.
The heat flux is usually described by Fourier’s law:
Here is the thermal diffusion coefficient and is the absolute temperature. For incompressible flow, the energy equation is decoupling and can be solve separately when needed.