They will sometimes pop their head off if under stress. If it's outside it's tube and it's head is popped off, I'd put it into a refugium or other calm area of the tank and just wait.
How do ya know if it's dead? It starts to rot. As long as it's not falling apart or looking slimy - leave it alone.