The 2nd one is a Self-Propelled Howitzer, an artillery gun.
The 3rd one is obviously a towed-artillery.
Artillery is for shooting rounds to bombard an area far away....up to 40+ km away. It is also known as a type of indirect weapon, that means you can't actually see your object and aim it directly.