This video pertains specifically to the 2004 W163 ML500 and how its electrical fan work. But the principals apply across most all Mercedes platforms. Below are the links to the troubleshooting guides.
https://www.benzworld.org/attachments...
https://www.benzworld.org/attachments...
https://www.benzworld.org/attachments...