That is not a trivial shape you are trying to add. You need to create an enclosed volume to sweep or protrude. As you saw, open-ended sketch segments do not get you what you want. Also, the sketch elements are brown, which signifies their relationships are broken or corrupt, which can happen if you delete or significantly change the surfaces they were originally attached to. You should recreate them.