It appears that you are missing both step flashing (between the roof and the wall) and the head flashing (above the trim running parallel to the roof line). Here is the link to the Hardie Best Practic ... read more
Hello Anthony,
Cracks can occur for a multitude of reasons. I would recommend hiring a home inspector to take a look at your situation and get his professional unbiased opinion.
Thnak you!
Teresa