Existence of Projective and Injective Resolutions