Numerical simulations of Milky Way galaxies: stellar and gas dynamics