How I get of this pain sperm cord?

Could be. infection, enlarged lymph node, or even a small hernia. Show it to your doctor to make sure.