Ya, pain can be caused by many things. You want to rule out an emergency situation like testicular torsion. Anything else you care to add to the information you provide. Here's an article on testicular pain that is pretty general. https://www.healthline.com/health/testicle-pain Let us know what else is going on.
What kind of testing have you had done? Have you had any imaging done, like an ultrasound?
Any swelling?