If you're getting a message on your old phone after you switched to a new Apple iPhone, the problem is that iMessage is still active on your old phone, just turn it off by going to settings > messages and turning off the iMessage button.