Hello, with the description it looks like an ear infection. It could be bacterial or fungal and either external ear or middle ear. It definitely needs more description and thorough examination as treatment for each condition will vary.
Next Steps
Pl visit an ENT specialist nearby if not a video consult
Health Tips
1. Keep ears dry( no water should get inside)
2. Do not put oil or over the counter drops etc
3. For pain just take Dolo 650 thrice daily till consultation