For the first two photos, feel the entire plant, if it feels squishy soft, it is done for sadly.
Typically if it is still a cutting and trying to root it, better to keep it in part shade, away from direct sun, stick in a well draining gritty media and wait till at least one healthy leaf grows. To me it seems that plant has been watered while dormant so it has rotted badly. My Plumies can take in stride the dry heat here even it it hits the triple digit range, so the temps yours got is not really bad, though it is different if it is already stressed and got watered when it is not yet ready to receive it.
As for the last photo, it is a bit dicey, but I do see leaves. At this point you can just experiment and keep it as is. It seemed to have callused that middle portion. Since it has leaves, just give regular watering now. Unless that top portion already feels squishy soft too, then no choice but toss it, it is just a sad slow death unfortunately.
Are you in California? I see Agapanthus growing. Those looks quite nice.