People try to please God in different ways. Yet, there is only one way to please God that works all the time. It's when God is working in you to please Himself. He does this through our Lord Jesus Christ, "working in you what is well pleasing in His sight" (Hebrews 13:21).
Those who try to please God with their own works are sure to fail (Isaiah 64:6). They are works of the flesh which can never please God (Romans 8:8). We simply cannot buy God's favor nor earn His blessing. Grace gives God's unmerited favor to us in Christ alone (Ephesians 2:8-9). God is well pleased in His Son. When you please God, it is by faith alone in Christ alone.
When you believe on the Lord Jesus Christ, know that God is working in you. He is working in you through the gospel and power of Jesus Christ (Romans 1:16). When you please God, it's in Christ alone (2 Corinthians 5:17). The power of God is working in all who believe on the Lord Jesus Christ.
By grace through faith, confess Jesus as your Lord (Romans 10:9). When Christ is working in you, then you are well pleasing to God (Hebrews 13:21). It's not about what you do for God, rather, it's all about what God does in you through Christ. That's when Christ works in you what is well pleasing in God's sight.