Pasteur said that if spontaneous generation had been a real phenomenon the broth in the curved-neck flask would have eventually become reinfected because the germs would have generated.
But the curved-neck flask never became infected, indicating that the germs could only come from other germs.