Your brain wants you to masturbate to feel rewarded as if you had accomplished something.
Masturbating so much could mean you are not spending enough time on things actually meaningful for you and the people around you are not giving you the proper encouragement for you to feel rewarded for having accomplished something, plus you yourself are not happy enough with the results of your own work; You consciously or not are comparing your work with that of the others too much.
Try to stop watching porn and Ecchi, have some sex (even if you have to pay, it's for your own good) then delete sexual thoughts from your brain.
Now, find something you would love to do, like playing an epic guitar solo with only jeans and a leather jacket walking out of an explosion, crave this vision of you on your mind and level up the skills to do that in the future, like learning guitar and getting fit.
Remember it takes 5 years of training to get a mastery on abilities, when you feel like you are making no progress, take a moment to remember how much you improved over all the time you've been practicing.