Phase synchronization and energy balance between neurons