If that’s what it looks like now it’s not dead. Replant it in really gritty compost. Water it once well and firm it in around the trunk. Leave it and it will grow new roots from the buried stem. Keep it barely damp
Agree with what others say, it will root. Succulents like free-draining gritty compost that doesn't get soggy though, and not too much water otherwise they rot. Some of mine go months at a time without watering.