It depends on the legal system. Since the victim can't be made whole (especially in cases like murder), a lawyer could argue that representing the victim is moot. However, the state —and sometimes the victim's estate— can still represent the victim's interests and seek justice or compensation.
Umm... aren't they just representing the victim because the victim is dead? If you steal, it is the victim who brings forward the crime (reporting it). When you perform other crimes, again, the victim may be society itself and society needs to be represented -- not the state.