A potential security issue has been plugged by Apple that could have allowed hackers to take control of your iPhone after a malicious SMS was received.
receiving a maliciously crafted SMS message may lead to an unexpected service interruption or arbitrary code execution
Make sure that you have updated to iPhone OS 3.0.1 by plugging our iPhone into your computer and checking for the latest software update.