There is no direct train service from Maine to New York. Alternatives: bus (~7 hours) or flight (~1 hour 30 minutes).