METHOD 1 - Just have two different goal objects and each goal will award the team when it goes in. (So RedGoal awards blue, BlueGoal awards red)
METHOD 2 - add a new Global Variable (I'll call it LastTouched)
On RedPlayer Collided with Ball -> Set LastTouched to 0
On BluePlayer Collided with Ball -> Set LastTouched to 1
Then when a goal is triggered, check if LastTouched = 0. If so, award red team. Otherwise, blue team.
Note METHOD 2 means that scoring in your own goal would award the wrong team.
Note that this does assume you already have the ball-deflection thing working, this is just for awarding the correct team for scoring.
(btw I am assuming you mean football as soccer and not american football)
Let me know if any other assistance is needed.