So you can spawn items in with /give Player Minecraft:itemName, but if you want to enchant an item with the /enchant command or if you want to use the /effect command to get a potion effect, you can't use the name, but can only use the id of the enchantment/potion effect.
Please provide the exact commands you're using. The following works fine: