I was able to fix the problem by formatting my sd card.
Remove your sd card and try using your phone. If your phone works fine after doing so, then the SD card might be the culprit.
To format your card, go to settings, more, storage, and format sd card.
But remember, you will lose all your...