Something is comic if it is intended to be funny. The word is mainly applied to skits, songs, plays and the like. "Tom Lehrer was famous for his comic songs."
Something is comical if it is unintentionally funny. "Her portrayal of Ophelia was comical."