Hai, i am 24  year old, from last few days my right testicle is paining while getting errect. Why its happening?

Also there is a problem with me, i have done that several time, stopping ejaculation by pressing tip of my penis .is that paining because of this?