When a virus attaches to its host cell, it injects the DNA/RNA that is inside of its capsid and the host cell uses it kind of like a mindless, hypnotized being and makes little virus parts inside. Once all the parts are assembled, the cell pretty much explodes(or lyses).