The amendment which guarantees a trial by jury if you're accused of a crime is the 6th amendment.
The 6th amendment guarantees that you must have a trial by a jury of your peers. If you need any other help with what the 6th amendment offers, I recommend this website in order to further research the amendments of the constitution: https://www.law.cornell.edu/constitution/sixth_amendment