A hypothesis is a proposed idea that may explain an observation or phenomena. It is verified by testing it. If the data supports the hypothesis, then we consider the hypothesis to be verified and true. If however, the data does not support the hypothesis or refutes it, then the hypothesis is in trouble, and we have to come up with a different hypothesis to explain the observations.
If a large body of data supports the hypothesis, then it becomes a theory. And if data refutes it, then we discard the hypothesis in favor of a different or a more refined hypothesis. Note that a lot of supporting data is required for a hypothesis to become a theory, and the theory must stand further tests.