How can nonliving atoms make living cells?
Atoms and molecules organize themselves at random in many ways, some of which are functional and self-replicate. From there to complex living organisms is a matter of increasing complexity. The whole process is thought to have taken billions of years and resulted in cells.