If that is the case, isn't it God who gives us our understanding and our desire to do His will?
Phil 2:12-13 clearly tells us that God moves in us our will and desire to do what is pleasing to Him. But not infallibly, because men CAN refuse God's graces (and thus, they are evil and have chosen NOT to accept God's graces).
Regards