AddMovementInput doesn't work

Hi new to C++ in UE4.

I want to make my character movable, in terms of looking around,BindAxis works good with that code

PlayerInputComponent->BindAxis("LookY", this, &APawn::AddControllerPitchInput);

but PlayerInputComponent->BindAxis("goForward", this, &APawn::AddMovementInput); doesn’t work

Create a function that calls AddMovementInput.

  PlayerInputComponent->BindAxis("goForward", this, &APawn::MoveForward);

    ...
    
    
    void APawn::MoveForward(float value)
    {
    	if (value != 0.0f)
    	{
    		AddMovementInput(GetActorForwardVector(), value);
    	}
    }