Help diagnosing power outlet that sometimes works
I find intermittent receptacles quite often are caused by backstabs, you replaced the receptacle but the problem may be from the receptacle feeding this one.

It most likely is a bad backstab but can be a loose connection or broken wire. 
When on a chain of receptacles the problem will be in the last working receptacle or first non working one.

You replaced the non working one moving closer to your service panel find the next receptacle if that is working it could be the connection for the wires feeding the problem receptacle. Back stabs are the cause in the very high 90% range but a broken wire loose wire at a wire nut or screw can also be the cause.

It can be either the hot or the neutral.

You did not find an outlet but there is a connection someplace since the breaker, &amp; outlet were replaced other that is a nail or screw driven through breaking the wire. Put a load on the receptacle like a hair dryer it will probably fail quickly. There are circuit tracers that can find broken wires in walls. These are expensive and not all electricians have them.