When you strike it, it will vibrate.
But you can't hear the sound because sound needs a medium to vibrate. Since there is no air in vacuum, you can't hear the sound.
But if you keep your ear on the vibrating frying pan, you can hear the sound. The sound will reach your ear through the vibrating frying pan as the frying pan is a solid medium and sound can travel in it.