I can't imagine that running for a week would affect this. When you have a loss of libido and erection issues, it's important to first see a doctor to look for a medical cause. Any medications, for example. Do you have any other issues with your penis such as it curving differently? Do you smoke? Are you over weight? Once you work with a doctor to examine you and go through your history, you can find out if this is due to a medical situation. But it often is due to mental health. Performance anxiety, stress and depression all can lead to erectile dysfunction. Especially in a young man. https://www.medicalnewstoday.com/articles/316215#Causes
There does seem to be a connection between hemorrhoids and erectile dysfunction. I don't know if that fits your situation. But you should treat the hemorrhoid! Talk to the doctor about that as well. https://www.mayoclinic.org/diseases-conditions/hemorrhoids/diagnosis-treatment/drc-20360280 Make sure to eat high fiber foods, try not to strain during a bowel movement, use topical aids such as preperation H, etc.