I lost my sex drive and I can hardly get an errection that isn't good enough

I am 20 years old and since past month I got some kind of erectile disfunction and I lost my sex drive completely. I always feel tired in my head and I can’t get turned on, I cant get aroused. Sometimes if I’m lucky to get erect, it hurts, sometimes my left testicle hurts, sometimes my penis hurts. I can pee normally without pain or problems, also my ejaculation is fine, there is no blood in my sperm