The oil is a symbol of the Holy Spirit. The five virgins who had no oil were not saved, they had not the Holy Spirit. The virgins who had oil in their lamps were saved, they had the Holy Spirit. Foolish people are unbelievers, wise people are believers. This is a pretty standard interpretation of the parable.