You need to get happy with yourself, the rest will follow naturally.
If you're not happy with yourself, you don't come off as attractive to others.
Join some groups, get new hobbies, do things that make YOU happy. Once you're happy, people will be attracted to you and things will happen for you.
You might look into anti-depressents, or maybe some counciling if you're seriously depressed.