Greetings momofnataliebear,
Thanks for posting on the Apple Support Communities. I see that your iPhone is freezing while in the iMessage and Facebook Messenger app while youâre typing. I know that it is important to have a working phone even if you are getting a new phone in the near future. Iâll be more than happy to help.
First, lets make sure your iPhone is backed up, then weâll want to force quit those apps and restart your iPhone. Itâs always good to give your iPhone a fresh restart every now and then.
How to back up your iPhone, iPad, and iPod touch - Apple Support
Force an app to close on your iPhone, iPad, or iPod touch - Apple Support
Then weâll want to reset your settings. This will reset all the settings including wallpaper, network, Wi-Fi, and VPN password. It will not reset any of your apps, pictures, or text messages.
Reset iPhone settings - iPhone
As a last resort youâll want to reset the device to factory settings to test to see if there is an issue with the content on your iPhone.
Use iTunes on your Mac or PC to restore your iPhone, iPad, or iPod to factory settings - Apple Support
Take care!