With traffic always being unknown in NYC, I typically prefer to take the public transit train from the airport into the city. It’s normally a quick and affordable way to transit.
Once at the ticket machine, you’ll touch the screen and answer each of the prompts, starting with English or Español. You’ll want to choose to go to NY Penn Station.
Buying a Train Ticket from EWR to New York City / Penn Station