Do you have the original tail lights? They will corrode. Take some emory cloth and clean inside and out. You need to do where the bulb goes plus open the trunk, pull the harness off and clean.
If your light bulb socket is loose it could be a bad ground. If your wires are original they are...