Check what you did to the tail light, I would remove tail lite again, take apart (what ever you did) and see if your head light comes back. No coincidence.
Agree with Firefighter. If the taillight replacement led to the headlight failure, that's where to start. Uninstall and then install again - maybe something shorted out (wire pinched, etc) during the install.