Welcome to Android Central! Which phone? Did you ever encrypt it? It shouldn't suddenly encrypt itself. This infamously happened with the Blu Life One X2 a few months ago after an official system update, but I'm not aware of a similar issue happening with other phones.