Make sure that the light level is above 7, and that there is grass near the spawner.
Chat with our AI personalities
Unfortunately, using the /give command will only give you a pig spawner.
The block id is 52. By default, it will be a pig spawner, so it is better that you use a mod like single player commands to change it
Maybe your game level is on peaceful or you put torches around it.
You can get a mob spawner in Minecraft by using any pickaxe (except wood) with Silk Touch 1 enchantment or by spawning it in (Dec:52).
It is give (your name) 92.