Here is a helpful outline of some steps involved in walking in the Spirit:
“I say then: Walk in the Spirit, and you shall not fulfill the lust of the flesh.” (Gal. 5:16)
A – Admit my helplessness (John 15:5)
P – Pray for help (Psalm 50:15)
T – Trust a specific promise (Isaiah 66:2)
A – Act with confidence in God (Isaiah 55:11)
T – Thank God (I Thessalonians 5:18)
This comes from John Piper, who I think got it from J.I. Packer. It is a good reminder of things to do when you face a temptation or challenge. It has helped me from time to time, and seems to be a broad distillation of the teaching of Scripture on the Christian life.