Ajax is not working in wordpress

Add below code on the top of ajax file:

require_once(‘../../../wp-load.php’);