I want to abstain from both porn and masturbation as they have become an addiction and want to live a productive life , would really appreciate some tips
Welcome! This is a good place to begin. I will be honest, it can be very challenging. First tip is to contribute a bit here, then, when you feel ready, open up to a trusted person: A psychologist, a doctor, a friend or relative. There are no miracle cures, but being honest about it is a good place to start.