When i try to move my object it teleports to the location it was originally placed. I am really new to blender
Does your object have animation keyframes? If so, blender won't 'let' you change it's location unless you have auto-keying turned on (the button with the little circle next to the 'play' buttons in the timeline panel), or if you manually insert a keyframe after moving, rotating or scaling your object.
As for the yellow line, it's probably because you have snapping turned on (the little magnet button on top of the viewport), but I don't think that has anything to do with what's preventing you from moving the object. Can you post a screenshot?