This question already has an answer here:
What would happen if suddenly everyone stops transferring bitcoins so that there is no work for miners (no transactions to be grouped into blocks)? Would mining be possible in that conditions? How exactly?
Of course, I realize this is impossible, I am interested in the theory behind it.