Social Security provides a very limited lump sum death benefit that may be used to help with funeral arrangements in certain cases. However social security pays an amount of $255 only if there if there is 1) a surviving spouse or 2) a surviving minor child and 3) the deceased had worked enough to qualify for social security benefits. Otherwise there is no benefit available. If the deceased was on SSI, they do not qualify for the lump sum payment. You need to plan on other sources to help pay for the cremation or burial.
If the deceased worked long enough to qualify for social security benefits, then a surviving spouse and minor or disabled children may qualify for survivor’s benefits. The amount you would get is a percentage of the deceased’s basic Social Security benefit and depends on your age and the type of benefit you would be eligible to receive. You may get an estimate online of how much your benefits may be.