Before having a go at whatever else, you can attempt just dialing *#06# on your iPhone (or any cell phone), this ought to recover the IMEI number. Give it a second and the IMEI will show up on the screen this little number dial stunt really attempts to recover the IMEI on other mobile phones as well, not simply the iPhone IMEI check