Knowing 4 sure if PCM is bad

Motor is blue and gray. Power cord runs directly into the motor. Yes, grooved pulley.