Exact solutions and spectrum analysis of a noncentral potential in the presence of vector potential