Things you need to check is brake fluid oil, and brake pads. If they are fine then it is the brake switch which needs replacing. Also check the handbrakes as sometimes it is left engaged.
brake light switch would be most common cause
The brake light switch is located above the brake pedal on a 1993 Nissan Sentra. To reach the switch the driver's door needs to be opened.
brake light on dash blinking
the brake light driver side not working
The 1998 Nissan brake light switch is located below the dashboard, on the drivers side of the engine compartment. The brake light switch simply plugs in and out.
could be a bad alternator or battery
check your bulbs
Check the fluid level in the master cylinder.
How to reset the tire pressure light on a 2007 Nissan Sentra?
show please how change plate light on an 2007 nissan sentra
The main problem might just be you mate.
1996 nissan sentra air bag flashing how to reset