A friend, one friend, is infinitely more lasting and important than a boyfriend.
You have to work at it. It's a two way street. You get to know someone little by little, and you trust little by little, and somehow you put the fears about trust and hurts from the past behind you in order to have this one wonderful best friend. That person might have gone through some of the same things you went through, and you have a common bond. But you have to reach out. Look around you and you will see other lonely people who seem shy and sad and awkward, and say something nice to one of them about how they look that day or let's go get a juice together or hang out.