On the left side of the fuse block there is the connector for the rear light harness. The brown wire is for the tail lights which I think is the second wire from the top. The wiring for the rear lighting is aluminum and that can corrode and break pretty easy. Check the brown wire at the fuse panel for power and if it has power then check the brown wire at the connection in the trunk. It it has no power in the trunk then it's broken in between he fuse block and the connection in the trunk. I had the brown wire corrode at the fuse block in my last GP. If someone had added a wiring harness for a trailer check where the spiced into the wires cause that will cause the single strand aluminum wire to break. Since your brake lights work it's not a ground problem since you brake lights use the same ground as your tail lights...