Spain escapes with a Comeback Victory