Airtrain and subway run 24/7, costs $7.25. Depending on where in Manhattan you want to go, you can either take Airtrain to Howard Beach station and the A subway (Lower Manhattan-West Side-Upper Manhattan) or to Jamaica station and the E subway (along 53rd St. Midtown and then downtown West Side to WTC).
Airtrain and subway run