Gorenstein injective and flat resolution of modules over Gorenstein rings