Unless they have been shucked and frozen, clams should be alive when you buy and cook them. If the shell is tightly closed, it is still alive. If the shell is slightly open, it should close promptly when tapped. If the shell is open and does not close when tapped, throw it out.