How To Go To Heaven When We Die
(Romans 5:8) "But God commends his love toward us,in that, while we were yet sinners, Christ died for us."
Realize your state before God as a sinner, condemned to pay your debt to Him by going to hell. See that God, who loves you in spite of your sins sent Jesus Christ to take the punishment for your hell on Himself. After you acknowledge these things in your heart, please read on.
(Romans 10:9-10,13) "That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead (Jesus is not dead, but alive by the power of His resurrection, showing that He was and is God), Thou shalt be saved. For with the heart man believe unto righteousness; and with the mouth confession is made unto salvation. For whosoever shall call upon the name of the Lord shall be saved."
God calls accepting Christ being saved. It is trusting what He said in His Word and then doing something about it.