Spain register first win after dominant performance against Wales