I understand where you’re at; it’s easy to get there and lots of people do. The previous comments are right, there is something to seeing how much you have. Also, life takes work. As a man, you have to take the first step. Some good advice has already been offered. A woman’s heart - yes, even a wife - needs to be pursued unselfishly. Even if you don’t feel it, do things that show you cherish her, and chances are she’ll come alive for you in ways that were hidden. (Love notes, flowers, romantic dates, doing what she likes.) Even if you don’t feel like it, be intentional about loving and teaching your kids about life and asking them about theirs. You’ll probably begin to see a new love and respect from them. Practically, you can also seek a hobby or take a vacation.
But ultimately even these things will be imperfect. Your needs definitely matter, but the goal in any relationship can’t just be to have your needs met. Nothing can satisfy them but God, and expecting anything else to fulfill them completely - job, wife, kids, money - will just disappoint, anger, or numb you because you’ll see how imperfect they are. They will bring some happiness, but ultimate meaning comes from God, and everything I’m saying has to start there. (I got all that from him anyway.)
God loves us totally, sacrificially and selflessly. He’s the reason we exist and he gives us purpose. It sounds like you’ve sought some concept of god, but from what you’re saying, it doesn’t sound like you’ve sought the God of the Bible. Jesus’ love will fill the needs you need filled so you can love others and truly receive theirs. He’ll welcome you with open arms, just as you are.
Then, when you accept him, he’ll help you let go of attitudes and actions that may feel good for a time but are ultimately destructive - selfishness, getting drunk, p0rn, whatever it may be. That spirit you’re looking for comes ultimately by living in the love of God - and he has many more gifts than that. 1st John chapter 4 says some good things about God’s love. Now, God doesn’t promise that circumstances will always be perfect from our perspective - it’s a broken world - but he will always love and take care of his children. It’s a long answer, but I recommend Jesus so confidently because he’s brought this life to me and I’ve seen him heal so much brokenness in so many others, too. (If your church experience hasn’t taught this, I recommend finding a church that does.) Hope this helps.