Wiper malfunction on my 2007 r350 benz

I have a 2007 r350 Benz, and the front wipers malfunction. Sometimes it comes on and sometimes it doesn't. I tried resetting it but nothing has changed.