If your Mew is hacked, it will never listen to you. It's programmed to ignore orders if hacked. This is the same for Deoxys as well.
If it is not hacked, you probably just need to get some more badges. Higher-level Pokemon won't listen all the time until you have all the badges.