The "command" is to sing with your heart, not your mouth. Try again.
In Ephesians 5:19, we are to be "speaking to ourselves". This is done by singing AND making melody in our hearts. Those are two separate things, which is notified by the use of the conjunction "and".
In Colossians 3:16, we are to be "teaching and admonishing one another". This is also done by singing. While we are singing, we are told to have "grace in your hearts to the Lord".