The Foreign Secretary has urged both Israel and Hamas to deliver on their commitments to help end the conflict.