The first thing you have to do is believe Jesus Christ died for your sins, was buried, and rose from the dead on the third day.

"For with the heart man believeth unto righteousness; and with the mouth confession is made unto salvation."
Romans 10:10

"But as many as received him, to them gave he power to become the sons of God, even to them that believe on his name: Which were born, not of blood, nor of the will of the flesh, nor of the will of man, but of God."
John 1:12-13

"Moreover, brethren, I declare unto you the gospel which I preached unto you, which also ye have received, and wherein ye stand; By which also ye are saved, if ye keep in memory what I preached unto you, unless ye have believed in vain. For I delivered unto you first of all that which I also received, how that Christ died for our sins according to the scriptures; And that he was buried, and that he rose again the third day according to the scriptures:"
I Corinthians 15:1-4

You must also confess your sin to Jesus, ask Him to be your Saviour and to forgive you of your sins, and turn away from your sins.

"For with the heart man believeth unto righteousness; and with the mouth confession is made unto salvation."
Romans 10:10

"For whosoever shall call upon the name of the Lord shall be saved."
Romans 10:13

"If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness."
1 John 1:9

"Repent ye therefore, and be converted, that your sins may be blotted out, when the times of refreshing shall come from the presence of the Lord."
Acts 3:19

Next