If only the brake lamps work, it sounds like the fuse/relay box under the hood has failed.
Power from the battery goes into the under-hood fuse box. See pic below. I need you to take a test lamp and check if the fuses in the box are getting power.
Here is a link that explains how to test a fuse. It also includes checking for power. Try this and let me know what you find:
See pic below.
Image (Click to make bigger)
Tuesday, June 6th, 2023 AT 9:11 PM