A study of field galaxies. II - The luminosity function and space distribution of galaxies