Which sentence has an infinitive phrase

AThe mailman tried to deliver the package, but no one was home
BThe mailman tried delivering the package, but no one was home
CThe mailman will deliver the package even if no one is home
DThe mailman can't deliver the package if no one is home.