Injective modules, projective modules and their relationships to some rings