Consider reading Adult Children of Emotionally Immature Parents, by Lindsay Gibson. The loneliness you feel may be rooted in your upbringing, and learning more about this can give you a deeper way to understand your feelings.
Meanwhile, as others have said, spend time with a competent therapist. You may need to shop around until you find someone that works well for you. They will guide you on how to socialize and form new relationships.