Samsung Galaxy S3 Mini has a reset problem

My phone (Samsung Galaxy S3 Mini) has a reset problem. Once you turn it on, it starts to reset and removes everything.

All the memory is gone if you receive a message, he will answer by saying that the memory is full, he only has it (0.00B).

I've tried to restart it, but there is no change and it displays a blue trick on the menu screen.