Jesus died for your sins, taking your punishment on Himself. God did for you in Jesus Christ what you couldn't do for yourself. You can receive Jesus Christ through faith. Faith is trusting in what Jesus has done for you rather than trusting your own efforts to restore fellowship with God. Faith is complete reliance on Christ to put you in right relationship with God, allowing Him to live His life through you.
Faith also involves repentance or genuine sorrow for sin and willingness to turn away from sin.
Through prayer you can trust in Jesus Christ. Admit to God that you are a sinner. Express sorrow or repentance for your sinfulness. Ask Him to forgive your sins. Invite Jesus into your life as Savior and Lord.