Evolution of galaxies in pairs: Learning from simulations