Chances are, your aux fan is defective. Which is why when the vehicle is moving, the temp is normal (the onrush of air cools the radiator), and when the vehicle is stationary, umaakyat yung temp gauge.

Check also your water level or leaks sa radiator or hoses. Pop the hood and gun the engine, and have someone rev it. Observe...problem could be easily solved from there