Additionally, you can grab a multimeter and check to see if you’re getting power at the brake light wire when you actuate the brake pedal/switch (this will eliminate the possibility of a bad socket and/or if the bulb is bad/incorrect).
If you don’t power at the brake light, then start working your way back along the wire, checking every connection until you find where you finally get a hot wire.