So I own a 2013 Cadillac CTS 4 3.0L and recently my radiator fan stopped working on idle? Why? Any ideas?

So basically as I drive it turns on however if it's parked or on a stop light for a while it turns off resulting in hot air while ac is on you can hear the click that usually turns it on but still nothing.
3 answers 3