If you trade some times with a villager, it locks it's trading (a standar minecraft fauture)
With normal villagers, you can just trade something else and it would unlock again, But this feature has been disabled for villagers spawned with spawners.
If you can' to trade with villagers and unlock new trade's, you'll have to place the villager with a villager spawn egg, a spawner won't work.