Is the hole in eardrum is small then you do not need to worry and it will Heal by itself overtime. You can get relief from the pain by taking a few pain Killers like voveron. What is the whole is large then it has to be reconstructed and cannot be taken care by medicines you need a surgery for that. For now I would suggest that do not use earphones or any kind of oil in your ear. Use ear drop Betnesol- N 2-3 times a day
Next Steps
do not use earphones or oil in your ear, avoid loud sounds and consult an ENT.