God changes your heart, which is the mind, will, and emotions. It is a work of grace performed by the Holy Spirit within you. Then, God does in you what you could never do for yourself. You are born again (John 3:6-8). You are a new creation in Christ Jesus (2 Corinthians 5:17). Therefore, all the praise and glory is to God alone.
God changes your mind by the Holy Spirit (Romans 12:1-2). Then you understood the power of the gospel (Romans 1:16). You repented and received Jesus as your Lord (1 Corinthians 12:3). Repentance means a change of mind. That change was enabled by the Holy Spirit changing your heart (Romans 2:28-29).
God changes your will with new desires. Before, you had no desire for Christ. You were unwilling to receive Christ. Now, God has worked in your heart with a desire for Christ (Philippians 2:13). That's the work of God in your heart through the Holy Spirit (Philippians 1:6).
God changes your emotions. Before, you had no tender emotions toward Christ nor remorse for your sins. Now, you have godly sorrow for your sins, and emotions of love and gratitude toward Jesus Christ (1 Corinthians 16:22; 2 Corinthians 7:9-10). That's how God will change your heart.