The problem that you are describing seems to be an inguinal hernia
. Here the intestines protrude out and hang into the scrotum
and on gentle pressure reduce back into the abdomen. Hernia as such can only be cured by surgical intervention and you will need to be looked at by a surgeon. After the surgical reference please revert back about the diagnosis made and the treatment options and I can surely guide you about the future options.
Regards and get well soon.