New messages will be received on the new iPhone once it has the sim card in.
But existing messages on your old phone will not transfer over just because you insert the sim card in the new iPhone.
If you need to transfer all your existing messages from iPhone to another, you need to backup the old iPhone and restore the backup to the new iPhone.