I don't know what "a long time" is, and I don't know how long it took when your compressor was working normally, so the level of failure is a guess.
Check out the page here: http://www.about-air-compressors.com/compressor-why-not-build-pressure.html for reasons why a compressor won't build pressure.
One of these issues is developing in yours, I expect.