PrimTxmeKing You would need to link your Xbox Account and your PlayStation Account to your EA Account, (which would need to be the same EA Account used to play the game).
The linking can be done here: My EA Account | Connected Accounts
Note: If your Xbox and PlayStation Accounts are linked to two different EA Accounts, then you'll have to unlink one of those platform accounts from its connected EA Account before you can link it to the other EA Account and its connected platform account, (as two EA Accounts cannot be merged together).
However, if you do unlink a platform account, it will lose access to its Apex progress and data, (as that is stored on the connected EA Account), and if the other EA Account you're about to link it to had already made a connection of that type before, (aka, it had another Xbox/PlayStation account linked to it previously), you won't be able to link your platform account to it as that previous platform account's link is a lifetime link.
More information about Cross-Progression can be found here: EA Help | Apex Legends™ Cross Progression, and information about cases involving two EA Accounts can be found here: EA Help | What to do if you accidentally made a second EA Account.