Spin excitations and pairing gaps in the superconducting state ofYBa2Cu3O7δ