This study investigated the mechanisms of vorticity generation and the role of vortex tubes in plasma heating and energy transport. Vortex tubes were identified using the instantaneous vorticity deviation technique in the MURaM data set of a simulated solar plage region of the solar photosphere. Within 3D kinetic vortex tubes, the misalignment of the magnetic pressure and the inverse of the density gradient, rather than baroclinic effects, primarily drive vorticity within the tubes. During their lifetime, vortices become less dense as the Lorentz force pushes plasma outwards against pressure gradients. In the simulated upper photosphere, the Lorentz force contributes to adiabatic cooling and heating by expanding or compressing the plasma around the vortex tubes. In turn, vortex motion affects the magnetic field, enhancing current generation and intensifying the Lorentz force, which may further increase adiabatic cooling and heating. Moreover, our results confirm that vortices can significantly boost viscous and ohmic heating on intergranular scales in the photosphere. They generate more magnetic than kinetic energy, with energy transport by Poynting flux notably nonuniform and dominant at the vortex boundaries. This creates energy circulation in which the net upwards Poynting flux can enhance chromospheric plasma heating and support chromospheric temperatures.