Maybe problem with coolant temperature sensor. Is there a check engine light on as well? If so get code scan and post results.
What are the best BMW repair shops?
RepairPal Certified shops can diagnose and repair your 2006 BMW 325i. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.