Solved! how can i recover that photos

Solution
You can't. You can try a file recovery software on a computer with the phone attached, but there is really 0 chance after a factory reset it will find anything. Recuva has a free software you can try.