Giving thanks is so important to being able to hear God’s voice because, like praise and worship, it is something God responds to. It’s something God loves, something that warms His heart. Anytime we give God pleasure like that, our intimacy with Him increases – and that makes for a better relationship with Him.
It is the will of God that we not sin. It is the will of God that we accept no other gods before Him; that we love our neighbor as we love ourselves; that we refrain from stealing, coveting, and committing adultery. Still the world is filled with idolatry, hatred, thievery, covetousness, and adultery. The will of God is violated whenever His law is violated.