That's an unsolved problem. The problem is usually called "abiogenesis" .
The theory of evolution is about how life changed. Problems in explaining the origin of life don't affect whether evolution is correct, because evolution doesn't start until after abiogenesis occurred.