Everything makes a sound when hit.
Rigid things tend to make more sound because the vibration propagates over the whole shape quickly because the rigid thing is held tightly, so instead of just giving way or changing shape or breaking, the thing vibrates, making a longer-lasting sound at one frequency.
Metal is a rigid thing because of its structure. See above.