We can write the hypothesis using if-then is that if there is no parent organism, then all on their own time the maggots and other growths can appear on the foods that are spoiled.
In scientific investigation we use the five steps process called the scientific method. Observation, research, hypothesis, experiment and conclusion.