Sounds almost exactly like you've turned it to adventure mode rather than survival mode. Just change the mode again.