Taillights sometimes work, then they both go out, and come back

The TS switch is where the TS/ brake function are split from each other, being they use the same filament on the 1157 bulbs...