In musicals: Actors perform full musical numbers—singing, dancing, or both—as an integral part of storytelling. Think The Sound of Music, La La Land, or Les Misérables. Casts often undergo vocal training, and singing is a core job requirement.
In non-musical films: Actors typically only speak their lines. Singing or dancing occurs only if a specific scene demands it (e.g., a character singing at a karaoke bar, a diegetic performance). It's a momentary character beat, not a structural element.
Some films blur the line—dramas with significant musical sequences (A Star Is Born, Walk the Line) where actors perform as musicians. But the rule holds: if it's not a musical or a music-centric biopic, don't expect a song-and-dance routine.