"Sometimes" means "now and then" or "occasionally", frequency. Sometimes I question everything.
"Sometime" means "at some unspecified time", a point of time. Let's get lunch together sometime.
"Some time" means "quite a while", a duration. I think I'll spend some time working.