"On time" means that something happened when it was supposed to, or at a time which was previously agreed to. He always shows up for work on time. "In time" is used when one event occurs early enough, or at the appropriate time to have a desired effect on another event.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.