Hi and welcome to Rootschat
There are public burials and pauper burials
As I understand it - if the family could pay the undertaker but could not afford to buy a grave - the council would provide that facility but there would be more than one person in the same grave. This is a public burial.
If the deceased or any surviving family members were destitute - then the council would pay for all necessary aspects of the funeral. This is a pauper burial