(a) The forces that act on the block are $qE$ and $mg.$ Since $qE$ and $mg$ are constant forces, the only variable elastic force changes by $kx.$ Where $x$ is the elongation in the spring $\Rightarrow$ unbalanced (restoring) force $= F = - kx$
$\Rightarrow - m\omega^{2}x = - kx \Rightarrow \omega = \sqrt{\frac{k}{M}} = T$