Are you dragging out the rectangle before starting to type the dimensions? Or are you just clicking once and beginning to type? If you aren’t dragging the rectangle out after the first click, SketchUp doesn’t know how to orient the rectangle. You need to give it that.