The very large telescope lyman-break galaxy redshift survey - iv.: Gas and galaxies at z ~ 3 in observations and simulations