Bottom of my iphone wont work?

I dropped my iphone yesterday and now when i go to text it, if i press the space bar i types the words above it: s.ive been told to put it back to factory settings but i don't want to loose anything.

Turn it off, then back on. Leave it off for 15 seconds.

Disassemble it put it back and must work perfectly.