Scientists likely study what happened with the experiment that went wrong, and then they try a different experiment to try to test it again, Thomas Edison didn't make a light bulb 200 ways, but he only needed one way to make a lightbulb.
Hope this helps, if not, comment below please!!!