It depends on the context. If you're talking about a railing
like alongside of a staircase, then that is a noun. If you are
talking about someone railing against their fate, that is a verb.
You can also use it as an adjective if you say something like "The
railing paint is faded."