Experts and BHG readers answer.
If the base has rotted, you can cut off the top part that is still firm. Allow it to air dry for a couple of days to form a callous layer on the cut surface. Then stick it back into well-drained soil or cactus mix. It should root rather readily.