Which correctly identifies the infinitive phrase?

To function properly
the phone needed
to be charged
the phone needed to be charged.