I just got my iphone4, I restored it from a backup of my 3gs except the 3gs was originally jailbroken before I went to 4.0 in the first place, after I restored from the backup, my carrier was changed and I also had a problem with the iphone screen blanking out when I made a call and it was close to my face and not returning, I tried to wipe it clean and restore from scratch but keep getting an unknown error occurred (1004)

any ideas?