Yesterday, the sun was hot.
Вчера, солнце было жарко.
The sentence is incorrect in both languages. Nobody says this in English either to mean "it was hot." Of course, if you really meant to say "the sun was hot..."

I wrote the book "Who stole my eggs?".
Я написал книгу, "Кто крал мои яйца?".

I read the book "Who stole my eggs?".
Я прочитал книгу, "Кто крал мои яйца?".
Moryachka's sentences were already correct.