Some conditions on the homology groups of Koszul complex