You need to have more observations than groups in your dataset (if N=number of observations and k=number of groups, you need N-k>0 to be able to compute the F ratio).
Of course I forgot to mention that each group must follow normality asumption. Check the assumptions for the one way ANOVA as mentioned by Laerd Statistics at https://statistics.laerd.com/spss-tutorials/one-way-anova-using-spss-statistics.php