There are many reasons due to that your AC is running, but it is not producing cooling. Some of the most common reasons for which your AC unit can't produce cooling are given below:
Ice build-up Dirty filters Dirty condenser coils Damaged or faulty condenser or air filters Leakage in the evaporator