Thank you for your query,
I went through your complaints.
The atmosphere of home,neighborhood and the society have immense influence on one's mental and physical health.
Your thoughts and the masturbation
are disturbing your daily routines, activities and your social functioning, so you better discuss these things with your confidential ,responsible person whether your parents or relatives and go for medical attention for psychiatrist
Nothing to worry, you will be normal soon.
Hope i have answered your query.