I have visited him sometime. (but I forget when) I visit him sometimes. (from time to time; occasionally) I visited him sometimes/sometime.
All OK, but as you know, with different meanings. Sometime = at an unspecified time. Sometimes = occasionally. (And Some time = a considerable length of time. And Some times = several times.)