The basic difference between PERT and CPM is that

The basic difference between PERT and CPM is that Correct Answer Guessed times are used in PERT and evaluated times in CPM

CPM which is a method to control costs and time. PERT deals with unpredictable activities, but CPM deals with predictable activities.
PERT is used where the nature of the job is non-repetitive.
In contrast to, CPM involves the job of repetitive nature.

Related Questions

PERT and CPM are:
PERT and CPM are
Why are CPM, GERT, and PERT not considered sufficient to create a project schedule?
Activity durations in PERT and CPM are decided on the following consideration