Take the airtrain. It is at every terminal, you will see signs for it when you retrieve your bags at the luggage carousel. Take the airtrain to Jamaica Station in Queens, should be around $3-$5. Then take the Long Island Railroad from Jamaica station to Penn Station, which should cost around the same, $5. Penn Station is underneath Madison Square Garden which is in the center of manhattan.
Take the airtrain. It is at