It's always possible you pulled a wire apart somewhere under the dash...
Lots of times when the AC 'suddenly' quits working, it's been leaking for a while. One day it 'suddenly' doesn't have enough pressure for the low-pressure switch. That switch is in there so you don't destroy your compressor by running it anyway.