Normally, you cannot cast spells while in Wild Shape. Druids gain the ability to cast spells while in Wild Shape at level 18 (Beast Spells ability) that only require Somatic & Verbal components. They will not be to use spells that require material components. Any magical effects through spells or magic items that are ongoing before Wild Shape is cast continue after the Druid Wild Shapes.