On the Formation and Evolution of Galaxies