God created the world the laws of nature were created by God. True science tries to find out what God put in the world. The trouble is where scientists speculate about theology and they don't know what they're talking about because they weren't there. They can't speculate about the origins of life because they weren't there.
Some of the best ideas I get seem to happen when I'm doing mindless manual labor or exercise. I'm not sure how that happens but it leaves me free for remarkable ideas to occur.