I can't move anything in the viewport

Sometimes you are stuck on the renaming mode. When you create an object make sure you clicked on a free space