Brush Feature not working

Using PC with WIN 10, PS 2021 . When I try to use the brush to applied an effect to a limited area the effect doesn’t occur and I get a message: You are in the selective editing mode. Click Apply or Discard to return…
When I click Apply the effect goes away on the layers screen.