Helaman 5:12And now, my sons, remember, remember that it is upon the rock of our Redeemer, who is Christ, the Son of God, that ye must build your foundation; that when the devil shall send forth his mighty winds, yea, his shafts in the whirlwind, yea, when all his hail and his mighty storm shall beat upon you, it shall have no power over you to drag you down to the gulf of misery and endless wo, because of the rock upon which ye are built, which is a sure foundation, a foundation whereon if men build they cannot fall.
what is a foundation? a foundation is thebasisorgroundworkofanything....so let us use a houses foundation as an example.
Normally a houses foundation is made of concrete. concrete has multiple element in it so must our "spiritual concrete". In order for our spiritual foundation to be strong we must have many elements that work together so that it can remain strong even during the most harshest storms, some of the things that we can do that can help our foundation to remain strong is reading the scriptures and praying daily, these are two of the most important because they help us build our faith in Jesus Christ and we come closer to our Father in Heaven.
once we have our firm foundation we then must build our "house" which are more gospel principles that we learn about as we come to church and learn from our teachers.
After we have built our house there will be storms and damage to it which is like when we sin, We learn from the scriptures "Nevertheless, he has sinned; but verily I say unto you, I, the Lord, forgive sins unto those who confess their sins before me and ask forgiveness"(D&C 64:7).
If we have sinned which we all do at some point the Lord is willing to forgive us of our sins and the way that we can have them removed from us is by first being baptised, after we are baptized we can come to church every Sunday and partake of the sacrament. When we partake of the sacrament it is like repairing the house and making it look as good as new after a storm.