from 90% to 1% battery

from 90% to 1% battery

this morning my moto g went from 90 to 1%, and it turn off by itself..
Then when I turn it on, it was still on 1%
Tried a few restarts and still 1%
I know it has charge but it's just not showing how much
Anyone having this? Its the first time for me