How To Be Free
First of all you need to receive Jesus. He will free you from condemnation.
John 8:36: If the Son therefore shall make you free, ye shall be free indeed.
Romans 8:1: There is therefore now no condemnation to them which are in Christ Jesus, who walk not after the flesh, but after the Spirit.
And then you need to study the Bible. It will free you from the snares of the Devil, from a miserable life of habitual sin and help you to live a life that is pleasing to the Lord, a life in which you can enjoy the love of God and be at peace with Him. If you have not found your life to be immeasurably better since receiving Jesus, I question whether you have received the Jesus of the Bible and the Bible of Jesus.
John 8:31: Then said Jesus to those Jews which believed on him, If ye continue in my word, then are ye my disciples indeed; 32 And ye shall know the truth, and the truth shall make you free. 33 They answered him, We be Abraham*s seed, and were never in bondage to any man: how sayest thou, Ye shall be made free? 34 Jesus answered them, Verily, verily, I say unto you, Whosoever committeth sin is the servant of sin. 35 And the servant abideth not in the house for ever: but the Son abideth ever. 36 If the Son therefore shall make you free, ye shall be free indeed.
Romans 6:18: Being then made free from sin, ye became the servants of righteousness. 20 For when ye were the servants of sin, ye were free from righteousness.
John 17:17: Sanctify them through thy truth: thy word is truth.
Psalms 119:11: Thy word have I hid in mine heart, that I might not sin against thee.
Psalms 119:105: Thy word is a lamp unto my feet, and a light unto my path.
John 8:12: Then spake Jesus again unto them, saying, I am the light of the world: he that followeth me shall not walk in darkness, but shall have the light of life.
John 10:10: The thief cometh not, but for to steal, and to kill, and to destroy: I am come that they might have life, and that they might have it more abundantly.