The Book of Ephesians by St. Paul is a very short “book” of the New Testament and I suggest you read it slowly and carefully.
First of all, let’s set our sights on the ultimate goal of achieving holiness in our life. Now, we all struggle with those problems you mention, but Paul in Ephesians or perhaps elsewhere admonishes people to change their thinking as a first step on the path of working out their salvation.
Second, in Ephesians Paul says that we have already received every spiritual blessing so we need to realize that and pray and work on becoming the disciple that Christ wants us to be. You have to concentrate on eliminating those things that are taking the place of God in your life - the things that control you instead of letting God control your life, according to his will.
Perhaps you might benefit by dividing your day into 15-minute segments and work on redeeming those segments of time, distancing yourself from sin and building your confidence that you can continue. Can you live ten minutes of your life without committing a sin of thought, word, or deed? As Paul says in 1 Co, you have to examine your life and separate yourself from “the evil that clings to us.” You might not rid yourself of the temptations themselves right way, but you can start working on developing resistance to those temptations, on developing confidence that you can “walk away” from that temptation.
How long does a temptation last? 5 minutes? OK, well, use that five minutes to turn to prayer, meditate on scripture,
Are you Catholic (I didn’t notice)? Consider the last hymn that is sung in the traditional funeral liturgy of the Church:
In paradisum deducant te Angeli; in tuo adventu suscipiant te martyres, et perducant te in civitatem sanctam Ierusalem. Chorus angelorum te suscipiat, et cum Lazaro quondam paupere æternam habeas requiem.
“May the angels lead you into paradise; may the martyrs receive you at your arrival and lead you to the holy city Jerusalem. May choirs of angels receive you and with Lazarus, once (a) poor (man), may you have eternal rest.” [Wikipedia quotes]
This is your goal, this is your Christian destiny. right there, you need to be grabbing that eternal rest* right now.* You have to realize that you are in charge of your direction. You need to consider tossing away the things that do not lead to Christ, things that are not worth the long-term goal of eternal rest with God.