Do not take this as a diagnosis, but you sound like you have depression. The good news is that depression is treatable, either through therapy, lifestyle changes, or medication. Many other people suffer from depression; it's a thoroughly modern illness, albeit one that still carries some stigma.
I recovered from depression over a period of about 18 months, starting from the age of 25, and I can say this much about it: you cannot expect people to start loving you until you love yourself. (Family is an exception: they already love you. Turn to them for support.) And you really need a qualified external opinion on your situation. Solving your own depression is like trying to get airborne by pulling on your shoelaces.