Thank you for your medical query at AskTheDoctor.com
I understand your concern.
Getting hit on the testis is extremely painful and hence the erections may be hampered till the pain lasts.
Please give it a week's time for complete recovery. The erection as well as the pain will come down.
Also wear an underwear with good scrotal support.
Hope this was helpful,
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.