Playing two-player in The Simpsons Game usually involves progressing through the levels and completing certain objectives to unlock co-op features.
The specifics can vary by level, so if you're stuck, it helps to check the in-game prompts or a current walkthrough, since the exact requirements aren't always obvious at first glance.