Maybe a Group of Campanologists have started practicing their routines next door.
But seriously: the ringing in your ears is called "Tinnitus" and can be caused by damage to the inner ear. A possible cause of both headaches and tinnitus is "sinusitis" - inflammation of the sinus passages sometimes caused by the collection of mucus forced their by frequent hard blowing of the nose.
If you have also got ( or recently had ) cold / flu symptoms, see your Doctor or a Pharmacist. Otrivine Mucron tablets will tackle all those symptoms very effectively.
Ear infections can be quite serious and very painful, possibly leading to long term impairment of hearing and chronic tinnitus, so seek proper medical advice and treatment as soon as possible if the ringing in your ears does not disappear quickly.
-- Best wishes - Majikthise.
Depends what you were doing before it happened, if anything. Example.. loud sounds, like listening to music too loud, could cause both.
migrane or ear infection
It could be a migraine.