Hi, just check that you have the correct type of bulb in your tail lights.
If you have a single filament bulb, ie a stop lamp, or tail lamp as opposed to the twin filament stop/tail bulb then when you press the brake pedal the the tail lights will not work but will supply power to the light...