Human beings are sexual creatures, and they certainly did not evolve to have the brain of a priest who never has any urges. Even priests secretly do it with nuns, I say this based on information from a relative whose uncle was a priest and confirmed it. Why do you think so many men chase after women? Hormones, urges, and evolutionary wiring.
Sex is probably the primary instinct in mankind, especially with men. The only real reason pornography and masturbation are so widespread nowadays is because men don’t have as easily access to sex as they used to in past history (marriages, concubinage, far less isolation, legalized prostitution, wars, functional men and woman interaction - today a lot of men hate women and a lot of women hate men - etc).
If you want to entirely cut off pornography and masturbation you’d need to replace it with real-life sex, OR, consume such things with moderation. People with long streaks doing the ‘nofap’ challenge for months always fall back down. It’s like wanting to eat once every 4 days, theoretically it’s possible but your entire brain chemistry will be against you and eventually you’ll want to eat more.
You see, in my experience, it is when you put a taboo on those things that you in fact amplify it by giving it more attention, more guilt, emotions, so you fall again, you swear you’ll never do it again, and you eventually of course do it again since you are a sexual being.
When one accepts that fact it’s not hard to get it under control. Of course it depends also if one is clinically hypersexual in which case it’s another topic altogether and should not take my advice. But it’s also counter-productive in my opinion to entirely abstain because the longer you don’t do it, the bigger the urge and feeling on climax (that’s scientifically proven, and also why many intentionally deprive themselves for some time before doing it). It amplifies the obsession with it.
Doing those two things isn’t necessarily harmful in magical development as long as you don’t overdo it, some even use sexual practices to further a magical outcome (sex magick) which may involve either real-life sex or masturbation. Or you could always cut off pornography to simply leave masturbation there, it won’t feel as good and that’s the point, it can be used as a regulatory practice in that case.
It may also help to find an activity where you pour passion and a lot of time to reduce the hold these practices have on your schedule. But maybe it would work using evocation as well, I have no idea, but I just find a little unplausible that a spirit would be able to entirely erase something deeply ingrained in our genetic make-up (not porn usage, but sexual urges which is what it depends on), contrarily for example to alcohol which is less natural in the urge to consume it in the genetic make-up.
Take it as you will though all of what I say here is an opinion and not the ultimate Truth™.
Nonetheless do give evocation a try and let us know how it went! And good luck to you, I know you’ll find a way to make it more manageable.