The aim of this thesis is to investigate the formation and destruction of molecular gas as a component of the turbulent, multiphase, magnetised interstellar medium (ISM). In the pursuit of a better understanding of the impact of stellar feedback has on the evolution of the ISM, we use simulations of (256 pc)^3 periodic boxes and 0.5x0.5x10 kpc^3 stratified disk slabs modelling local parts of the Galactic disk with the Eulerian, adaptive mesh refinement (AMR), three dimensional, magnetohydrodynamic code FLASH 4. The simulations include self-gravity, magnetic fields, supernova (SN) explosions and a chemical network following H+, H, H2, C+ and CO. The first part of the thesis focuses on the H2 molecule formation and density-magnetic field s...