Thank you for the query.
What you do suffer from is retractile testicle. This condition is caused by hypersensitivity
of cremaster muscle and leads to migration of the testicle to the inguinal canal
. This happens usually when is cold
. It gives pain and the testicle can be palpated in the groin area.
I suggest you to visit urologist
. Most likely you will need a surgery which will permanently solve your problem.
Hope this will help.