Inside the interior mirror is the sensor and wiring for the rain detector, so check that the wiring has not come loose. you just split the cover in two.
Also verify if the windscreen has been replaced recently as they are all integrated, maybe a problem ???
Always said I would go back to a 6 series