3D simulations of the early stages of AGN jets: Geometry, thermodynamics and backflow