To use a mob spawner, simply place it down and wait for mobs to spawn. Mobs will only spawn if there is enough space around the spawner.