The difference between steam engine and steam generator

The difference between steam engine and steam generator