05 Mz3 Passenger junction box compatibility

2005 Mazda 3 hatchback
I'm hoping someone can help me I have a 05 Mazda 3 hatchback my OEM PJB# BN8B 66730 E went on me 6 months ago so I grab a used one from a 07 sedan pjb# is PHBAN6 66730 E
plugged it up and everything worked perfect again except the horn doesn't work but it didn't work before either (not sure yet y it doesn't work) basically I'm trying to find the pjb part numbers compatible with my 3 so I know for sure everything will work I just ordered a new key fob not sure if it will program to this pjb the car didn't come with one they lost it so I've never had to program it. So does anyone know the compatibility of my 3 or can I just get the dealer to flash the one I have installed?