Had you written about your life style alongwith occupation and country, I would have been convenient to suggest you.
You have become addicted to masturbation and this is nothing related to physical body but mind. You need to clean your mind. You may follow the following things:
1. Avoid being alone as much as possible. Find good company and stay in this good company of spiritual people or people who are quite mature to learn from them.
2. If you are associated with other persons having this same problem, YOU MUST BREAK OFF THEIR FRIENDSHIP. Never associate with other people having the same weakness. Don't suppose that two of you will quit together, you never will.
3. Avoid pornographic material.
4. Early to bed and early to rise. Avoid late night meal accordingly. This is highly recommended.
5. After getting up early in the morning. Start some exercise schedule that may include gym, asanas, pranayamas, etc. This work out should be of 1-2 hours for you and those, who are habitual of masturbating. Join some gym as well as yoga classes. Also do shatkriyas - Kunjal, jala neti, sutra neti.
6. Use your energy in some creative work and only then you would be able to get rid of this habit.
7. Learn to manage your stress and anger. This may also be a reason to get rid of same through masturbation.
8. Learn and do yoga nidra or autogenic training everyday with autosuggestions that you are pure soul.
9.Join some new courses that can improve your skills and upgrade your career. Busy your mind as much as possible with fruitful tasks that give you sense of achievement.
9. Take psychotherapy from any qualified therapist.
I hope that the above points would help you to get rid of this habit. Remember a habit is superficially created in 28 days of repeated action and the same is reversed in the same number of days. So, try it.
With regards and best wishes for your health and happiness.