Existence and regularity results for solutions of spectral problems