For Super Saiyan 3 Broly, go to Dragon Ball Battle, open the What If stories and clear the "Freedom" chapter. Finishing it awards him.
Vegeta is handled differently: spend your stars to buy the Ultimate Super Saiyan 3 battle, win it, and he unlocks. Both are worth the effort if you like the later forms — they are among the strongest characters in the roster.