Complex sentence: They were back in the studio in early 1957, but two more sessions failed to produce any hit records and by July 1957, their contract with Herald expired.
Split into simpler sentences: They were back in the studio in early 1957, but two more sessions failed to produce any hit records. By July 1957, their contract with Herald expired.