There would be no need for commandments or repentance, if there were no judgement.
Someday, everyone will have a day of reckoning. We will be held responsible (accountable) for the works we have done in this life.
This life is a test. One day, this test will come to a close. We will all die. We will then be judged based upon how well we have handled our test.
We will all have to answer to God for the things we have done.
We will be judged based up our works (our actions, what we have done) and based upon our intentions (the desires of our hearts).
“We will also be judged for the things we chose not to do.”
If we chose not to follow the example of Jesus, keeping the commandments, helping those in need of help, etc., we will be judge for that too. If we chose to spend our lives in selfish pursuits, we will be judged for that.
We will be judged based upon our degree of knowledge of the gospel of Jesus Christ and how well we sought to follow it.
Since Adam and Eve, billions of people have walked this earth never knowing about the Plan of Salvation. If they never had the opportunity to during their lifetime to learn about the Plan of Salvation (and Jesus Christ’s central role), they will have that opportunity before judgement.
Children that have died without knowing the gospel will be redeemed. Those with mental disabilities, who do not know the difference between “right” and “wrong”, will also be redeemed.
Everyone who did not have the opportunity to hear the gospel in this life will have an equal opportunity to hear the gospel before judgement.
If we have done all within our means to keep the commandments of God. His grace will be sufficient for us. His grace will make-up the difference.
If we repent and keep the commandments, the grace of our Lord and Savior, Jesus Christ will qualify us to return and live with him, and our Heavenly Father, in eternal glory.