Three solutions for a class of higher dimensional singular problems