If the razor clams are not sticking out of the end of their shells and reactive to touch when you buy them, I worry that they are not fresh. Make sure you are dealing with fresh, live razor clams from a fish vendor you trust.
If any shells are broken and you aren’t sure if the clams inside are alive or not, I would always advise that you play it safe and discard any questionable razor clams.