You seem to be suffering from acute otitis externa which is a common type of ear infection. You may need to take antibiotics, pain killer medicines and antibiotic ear drops for few days. If cotton bud is stuck inside then you need to get it removed by a specialist
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment if required