Cosmological applications in Kaluza—Klein theory