Thanks for your query.Based on the facts that you have posted it appears that you have
developed what is termed as Paraphimosis
However this can be confirmed only on clinical examination by a qualified General Surgeon
Please consult qualified surgeon to confirm the diagnosis.
Take broad spectrum antibiotics and anti inflammatory medication like Diclofenac
twice daily.for a week .
Ensure to clean the genitals with warm water twice daily
If the problem is recurrent it will be better to get circumcised.