Temptations are generally solicitations to do evil. Trials are more often morally neutral. Temptations are something we participate in. Trials just happen to us. Temptations are guilt-producing.
Trials can be anger-producing.
They are alike in that both often come upon us suddenly. They arrive unannounced, often at our most vulnerable times. But so do trials. Cancer is something that happens to other people, so that when we hear those dreaded words from our doctor, we are almost never fully prepared. Trials and temptations are also alike in that neither is superhuman.