No sound from Cubase apart from metronome

Every few days Cubase stops producing sounds either recorded or live. The metronome still plays and most other functions are available. To get the sound back I have to quit Cubase or occasionally restart the computer.