unplug both of the plug for taillights in the trunk and look at the connector you will find that one of the pins at the connector will be melted and not making good contact. you may have to change light housing and the wire connector.
RepairPal Certified shops can diagnose and repair your 2001 BMW 325i. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.