Tried jailbreaking my iphone 5 on 6.1.2, how do I reset it?

do I erase all content and settingS?