After inserting your sim card whatsapp asks you whether you want to change your number or not. You should say "no" to keep your number.