With the AC on, see if the radiator fan is working. I'm guessing it isn't. The AC will work while the car is moving because air is blowing across the condenser. Do not run the AC while stopped if the fan isn't working or the compressor can get wrecked because it can't compress fluid. Obviously very bad for the car to be overheating too.