You should have your insurance company complete a ground stability study to determine if the cause is a sinkhole, washout, improper fill, organic decomposition, faullty home foundation or some other cause.
If the cause is covered you should have it remediated. Your insurance, very likely, will cover the cost..
Then proceed with a sale if you like. If you have no insurance, meaning you have no mortgage, be prepared to take a hit.