You have to take a rest for a few days. It's ok. You ill be fine in a few days.
If there is no unbearable pain, do not do any thing. Do not touch off and on to see whether it is erect or not. let it rest. You will be okay in a few days. If you still have pain and fee uncomfortable go to a doctor/