Did you disable Google App? If so, that's where your voice to text comes from and you must enable it. Once enabled, you should find it back in your keyboard like normal.
If it's enabled and still doesn't show up, wipe Google App cache, keyboard app cache, system cache via recovery and check keyboard settings.