If you are worried about missing rent or mortgage payments because of job loss, immediately ask for help. Call your mortgage company and ask for forbearance. While this does not eliminate your payments, it can delay them until you can find new employment. If you rent your home, contact your landlord. Ask for a reduction in rent or deferral for a few months until you can get back on your feet.
Also, ask for help from your local social services office. They will know of the resources in your area to help with housing costs.