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...
Just for clarity, THIS statement is correct, but that is not what you said in post 10.

But OP said in first post that it is the TAIL that is giving him problems.