This question already has an answer here:
Could you please explain what would happen without transactions? Let's say people stop s(p)ending for a while for whatever reason. What miners would do if there are no transactions? Will they just keep a copy of blockchain and have no reward for approving transactions?