if there is only one crab in the tank then there is something wrong with the water quality. Check the ammonia, nitrite, nitrate & PH. Do a water change if any of these are a problem.
If you have 2 crabs in the tank then they are probably fighting and the weaker one is getting pulled apart. If this is happening then seperate them before the weak one gets killed.
The crab will grow its legs and claw back the next time it moults (sheds its skin). This happens every few months. Make sure you have some calcium in the water for when the moult occurs. If there isn't enough calcium in the water the crab's shell won't harden properly and it could die. Calcium can be added with a general hardness mineral salt (Rift Lake water conditioner) available from any petshop. Get the GH up to 200ppm or more depending on what other fish are in the tank.
Make sure the crab is fed well so it can build up its strength. They should be fed each day and will eat any sort of fish food.