Statistical tests commonly assume that:
the data are normally distributed
the groups that are being compared have similar variance
the data are independent
If your data does not meet these assumptions you might still be able to use a nonparametric statistical test, which have fewer requirements but also make weaker inferences.