please correct the grammar issues in the paragraph
In a flash his brain sent him a signal and he realized it was only a dream.
In a flash, his brain sent him a signal, and he realized it was only a dream.