How does a funeral plan work?

How does a funeral plan work?