Thanks for query,
Your sitting posture gives pressure on testicles causes pain in it.
is is painful on touching?if not then nothing to worry but if it is there then there might be inflammation needs attention.
Just wear loose inner wear.change position on long sitting.
Your lower back pain
also associated to your posture.