Hello,
Thanks for posting your query.
After having sex, the prostate gland becomes engorged due to the work up and the muscles do contract causing difficulty in passing urine temporarily.
After sometime when the congestion of prostate is over, it comes back to its normal size and urine can be passed normally. What you are experiencing is a normal physiological phenomenon and is not indicative of any pathology.
The difficulty in erection also seems to be related to the anxiety and stress that you are going through. Once your mind relaxes, you will be back to normal. Please do not worry.
Hope this answers your query. I will be glad to answer the follow up queries that you have.
Please accept my answer in case you do not have further queries.
Wishing you good health.
Regards.
Dr. Rakhi Tayal.