Reasons why an air conditioner stops cooling after a while:
Clogged air filter.
Refrigerant charge loss.
Malfunctioning thermostat.
Oversized air conditioner.