Either your tail light fuse has blown, or there is a bullet-type wire connector inside the headlight bucket, brown and blue to brown and black, that has come unhooked. The tail light comes on with the key in "park" position because that is a separate circuit from the running lights.
__________________
|