How does direct debit work?

How does direct debit work?