Matthew 25 is a continuation of Jesus’s communication to his disciples on the mount of Olives concerning the tribulation and the second coming. There are three divisions in the chapter and there is no need to complicate them. They all pertain to the second coming of Jesus Christ at the end of the tribulation.
The first parable of the virgins serve to illustrate a point, “watchfulness.” The second parable in the chapter is to reemphasize the necessity to keep on laboring while watching. The third section of the chapter is the test of the Gentiles at the end of the tribulation. The separation of the sheep and goats comes down to anti-semites and pro-semites. The pro-semites (the sheep, the righteous) will be saved because they will have believed in Jesus Christ as Messiah (not because of their works).