1998 Lincoln Town Car

When i sit and idle for very long the engine starts to overheat. The cooling fan does not seem to be working but i don’t know why.