Serious relationship

I’m 23. I’ve never had a serious boyfriend. Or anything lasting more han two months . I’ve always just hooked up by still connected with the person . Once I do talk to someone and actually like them I get scared to commit . It just lost a great guy . But this time I was the one stringing him along ... anyone else like this ? How do you overcome this