Excuse me !
I've always had self-esteem issues which turned into a problem with masturbation and pornography.
That's not a "self esteem issue".

That's a self control "issue".
My wife didn't know about my problem as I kept it hidden from her.
That's a secrecy "issue".
I lied to myself that there was nothing wrong with masturbation and pornography, but I didn't talk to my wife about it.
That's a dishonesty "issue".
I had never really dealt with my wife's feelings about it. It was just about me and how I was dealing with it.
What the heck do you mean "dealt with my wife's feelings" ???
What you lack is empathy and caring in your marriage.
You have been selfish and lazy.
We discussed a woman that I had been working with and how I shared personal information with her and I thought that she was sexually attractive. How I had made comments about her attire and that there was joking around about sexual topics. How this woman made a comment about dressing the way she did to get men to do things for her at the workplace.
You behaved like a pig at work.
This sort of behavior could cost you your job.
After this, my wife asked me not to talk to this woman again and I agreed. However, there were a number of times that I talked to this woman and once that I walked over to a coffee shop with her always in the precense of another person. I also arranged it to be in the office of a co-worker of hers that I didn't necessarily need to be in as much as I was.
You lack integrity and self control.
My wife hasn't trusted me since then and why should she. I'd would appreciate any comments or insights that anyone would have.
Call the Harley's and arrange phone coaching.
You need NEW BEHAVIORS.
You need them yesterday.
The "why" you act like such a fool is not worth discussing.
You can change today regardless of the supposed "why".
Start behaving better now.