This is a critical question..

Why does y=3 represent a function and x=3 does not

The first is a function of x as there is one y value for all x. At any x, y=3.

The second is not a function because there is no value of y defined for any x. At x=3, y can be any value, and at other x values, y is undefined.