If its an XB9 or XB12, and the fan has oil on it (like jimijeans mentioned it might), it's most likely a rockerbox gasket leaking, the oil gets on your fan and causes failure. There's no good way to repair the fan. I recommend replacement with new.
I'm speaking from experience, that's what happened to me with my Uly.
So.. if thats the case I recommend fixing both problems. A rockerbox gasket leak worsens very quickly and makes your bike filthy.