If this is a scooter...it is behind the not working brake lever. Right at/near the pivot point of lever. . Black plastic part usually. ..only a few $ if typical. On bikes it's in the open, scoots- inside the plastic panel.
Sometimes electrical contact spray will get it working if corroded.
Stig