THE EVOLUTION OF THE STAR FORMATION ACTIVITY IN GALAXIES AND ITS DEPENDENCE ON ENVIRONMENT