Some time means "a length of time." Sometime means "at a time that either is not specified or is not even known." Sometimes means "occasionally (at unspecified times)."
The engineers had to wait some time before
the system finally completed its diagnostic routines.
Astronauts will return to the Moon
sometime.
The gas chromatograph works well sometimes,
but other times it doesn't work at all.