Sometime, some time, sometimes Edit

Sometime is now confided to the meaning 'formerly': He was sometime principle of the college.

some time= Here some is an adjective qualifying time. 

Hence some time=
(i) for some time; I have been writing for some time (COD) 
(ii) Elliptical for at some time or other: I shall see about ut some time.

Sometimes= occassionally: sometimes he acts thus.