Go to your "language and input" settings and make sure your keyboard is turned on. A good factory reset will always do the trick if that doesn't work. Or if you want to avoid both of those, you can always download a keyboard from the Google Play Store and use that. I recommend Google Keyboard.