Your code was missing the data value (the 0 after the mob_spawner) and the handler (replace, destroy, keep). As well, it's highly recommended to use the name ID (mob_spawner) instead of numerical (52), because numerical IDs are being removed in the future. There was also a curly bracket that was both not needed and didn't have an appropriate ending bracket.
Your second command had 'EntityID' instead of 'EntityId'; the tags are all case-sensitive.
if you have access to type commands you typically have access to /gamemode creative which means you can change any spawner to whatever you can summon via a spawn egg
/setblock ~ ~ ~ mob_spawner 0 replace
this sets the generic spawner .. now put a spawn egg (zombie for example) into your inventory and throw into the spawner .. now put a spawn egg of something else (cave spider for instance) and throw into the spawner .. whichever spawn egg you use becomes the spawner entity .. just something that seems to be a little known tidbit .. you can create a villager spawner or anything really