Vector and scalar gauge fields with respect to d = (3 + 1) in Kaluza-Klein theories and in the Spin-charge-family theory