How to use GOTO CMD in quadrotor

I want to sent a coordinate (lat,lon) of my target to my drone to go to there and hover. I saw a MAV_CMD_OVERRIDE_GOTO command but i doesn’t work .

You can do this in GUIDED mode.

Do you have any example on MAV_CMD_NAV_WAYPOINT . I send that command in command long but it doesn’t work

No you can’t.
You should send them as mission commands.
I recommend you to take a look at the dronekit python source code.
For example send waypoint command in guided mode