Watch some videos by Gabor Maté. He links addition in adult life to childhood traumas. You can fit loneliness in there as well.
I'm guessing both of you mean addiction?
P.S. Sorry if my comment is derivative.