I’d guess that you either have a bad brake switch or it’s not wired correctly. Seems odd that both switches are bad. You might want to open the headlight and check the wiring.
Are you also sure you put in the right bulb into the taillight? There should be two elements in it. Did you accidentally burn one out? Make sure you have the right bulb, inspect the elements in it or simply replace and try again.