Exploratory factor analysis is used when you do not yet know how many dimensions a set of items carries. It lets the data group the items.
Confirmatory factor analysis starts from a model you have specified — these items load on this factor — and reports how well the data fit it.
Running CFA on the same sample that produced the EFA solution is not a confirmation. It is the same data agreeing with itself; a genuine test needs a second sample.