Characterizations of inner product spaces by orthogonal vectors