Can't find "EnhancedInputComponent.h" in CPP

You can set it using

PlayerControllerClass = YourPlayerController::StaticClass();
DefaultPawnClass = YourPawn::StaticClass();

You should have these available in contructor of your game mode.