Transient anomalous diffusion in periodic systems: ergodicity, symmetry breaking and velocity relaxation